PDA

View Full Version : Creating an onfocus randomized text saying in a search bar?


CeeN
02-23-2005, 10:36 PM
Hey,

I want to do an onfocus script that shows a saying in the search bar, and then goes away when you click it, and I was wondering if it was possible to make that saying that it says before you click it a random expression picked from a few possible choices?

Any idea?

Here is the script I am working with...

<input name="s" type="hidden" value="" /> <input name="do" type="hidden" value="process" />
<input name="sortby" type="hidden" value="lastpost" />
<input name="forumchoice" type="hidden" value="0" />
<input class="bginput" name="query" size="55" type="text" /> <input type="image" class="textinput" src="http://www.volconvo.com/search.gif" width="52" height="14"/><br />
<span class="smallfont">&raquo; <a href="$vboptions[bburl]/search.php?">$vbphrase[advanced_search]</a></span>