CSS & JS experts, a question for you

Discussion in 'CSS' started by www.techdo.com, Mar 12, 2009.

  1. #1
    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



    .
     
    www.techdo.com, Mar 12, 2009 IP
  2. www.techdo.com

    www.techdo.com Well-Known Member

    Messages:
    526
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #2
    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






    .
     
    www.techdo.com, Mar 12, 2009 IP