...

View Full Version : CSS & Js experts, a question for You



dariopc
03-12-2009, 01:55 PM
how can i keep the search box dark-gray while i'm writing a search term ?

(at the moment not so many words in the DB, try words starting with letter T or L or S)

http://www.dbwebserver.com/semeraro/01/index.html


thank you for your help

dario

dariopc
03-12-2009, 02:37 PM
ok fixed with this

<input id="search" type="text" onblur="this.parentNode.parentNode.className = 'ricerca';this.value=!this.value?'Cerca prodotto':this.value;" onfocus="this.select();this.parentNode.parentNode.className = 'ricercahover';" onclick="this.value='';" onkeyup="ajax_showOptions(this,'getProdottoByLetters',event)" value="cerca prodotto" size="20" name="search"/>

thank you anyway



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum