Hello,
I am looking for a way to add informative text to a search box, i.e. a text that is shown there by default and disappears when cursor is put there.
I have located the following line in template-functions.php:
`<input type="text" name="words" value="<?php echo $searchwords; ?>" id="search_input" size="10" />`
And I've added the following code to it:
`onfocus="if(this.value=='Start search here') this.value = ''" onblur="if(this.value=='') this.value = 'Start search here'"`
However, this would not show the "Start search here" text when a pages has just loaded, and you have to put cursor in search box for the text to start showing.
Does anyone have any ideas how to further modify the input line, so the "Start search here" text would be show all the time without having to click search box first?
Thank you!