Rick,
I copied and pasted your suggested changes into my material, but
unfortunately "inurl:post" was still added to the search query when the
Web search button was chosen, as well as when the button for my blog was
chosen.
Just to confirm, here's what I had in the relevant section after making
your changes:
<form method="get" action="http://www.google.com/search" target="new"
onsubmit='document.getElementById("q").value +=
document.getElementById("sitesearch")=="" ? "" : " inurl:post";'>
<input type="text" name="q" size="45" id="q"
maxlength="255" value="" />
<input type="submit" style="cursor:pointer; font-size:10px;"
value="Google Search" />
<input type="radio" name="sitesearch" id="sitesearch" value="" />
Web *
<input type="radio" name="sitesearch" id="sitesearch"
value="stumblng.tumblr.com" checked /> The Stumblng Tumblr *<br />
</form>
If you have any further suggestions, I'd be very grateful.
Thanks again,
Leslie
Rick Welykochy wrote:
I already noticed a bug in what I wrote. The code refers to an
ID for the two input boxes, so add them to the HTML:
<input type="radio" name="sitesearch" id="sitesearch"
value="" /> Web *
<input type="radio" name="sitesearch" id="sitesearch"
value="stumblng.tumblr.com" checked /> The Stumblng Tumblr *
cheers
rick
--
Visit http://stumblng.tumblr.com
An Australian lawyer's tumblelog of things (some about law, most not)
that you might otherwise have missed
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html