SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Oct 2003
    Location
    Florida
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Text in search box

    I know this may sound kinda newbish, but i really never knew how to do this. I know how to add text inside a serach box, and when i users clicks in it it will go away. But the thing i was wondering is how you make it come back if the decided not to search. Like here at SPF. If you click on the search box in the header, were it says 'Search the forums...' it will go away, but if you click anywhere eles on the forums, it will come back. Can anyone show me hows this is done? Thank you very much!!

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    HTML Code:
    <input type="text" id="searchbox" name="searchbox" 
    value="Search the forums..." onfocus="this.value='';" 
    onblur="this.value = this.defaultValue;" />
    Not much else to it really .

  3. #3
    SitePoint Addict
    Join Date
    Oct 2003
    Location
    Florida
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks i figured it out after i posted it lol, but kept getting 404s on SPF so i gave up editing.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •