SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Text field box

  1. #1
    SitePoint Member
    Join Date
    Jul 2001
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Text field box

    I have a simple text field & submit button on my homepage with text in the text field. I want to have it like here at Sitepoint, where you click inside the box and the text disapears so the user can enter their info.

    How can I do this? It's driving me nuts!

    Thanks.

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <input class="toplinks" onFocus="this.value='';" onBlur="if (this.value=='') {this.value='Search For...';}" type="text" name="query" value="Search for..." size="24" maxlength="150" />

  3. #3
    SitePoint Member
    Join Date
    Jul 2001
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. It works great.


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
  •