Well, I finally made some progress, but could use a tip from a programmer.
I put the search function at the top of my fan site, and it does work, but it works too well. It finds and returns every instance of the words even in the code. Which means that it will pull up pages with the term as a keyword or part of a menu option. If I enter "Spartacus" for instance, all the pages in my site get shown.
So what I get is the same as if I entered: site:stanleykubrick.website spartacus
But if I manually enter: site:stanleykubrick.website intitle:spartacus, which added the operator "intitle", it now gives me only pages with the word "Spartacus" as part of the title. That would work much better for my site. Is there some extra coding that I could add to my existing code to do that? The code I have now is:
<form method="get" action="http://www.google.com/search">
<div style="border:2px dotted black;padding:4px;width:15em;">
<table border="0" align="center" cellpadding="0">
<tr><td>
<input type="text" name="spartacus" size="25" style="color:#808080;"
maxlength="255" value="Google site search"
onfocus="if(this.value==this.defaultValue)this.val ue=''; this.style.color='black';" onblur="if(this.value=='')this.value=this.defaultV alue; "/>
<input type="submit" value="Go!" />
<input type="hidden" name="sitesearch" value="stanleykubrick.website" /></td></tr>
</table>
</div>
Thanks.
Bookmarks