Re: Creating an eBay style search form...

Discussion in 'HTML' started by Roy Schestowitz, Aug 19, 2005.

  1. Philip Ronan wrote:

    > "Mark" wrote:
    >
    >> Hi all
    >>
    >> I want to recreate the search box that is at the top right of most eBay
    >> pages.
    >>
    >> The aspect that I am specifically talking about, is the "START NEW
    >> SEARCH" test that is in the box by default, that disappears immediately
    >> you click in the text box.

    >
    > Is this what you mean?
    >
    > <INPUT type="text" value="Search" onfocus="if
    > (this.value==this.defaultValue) this.value='';" onblur="if
    > (this.value=='') this.value=this.defaultValue;">


    Or this one:

    <input type="text" name="q" value="&laquo; search term &raquo;"
    onfocus="this.value=(this.value=='&laquo; search term &raquo;') ? '' :
    this.value;"
    onblur="this.value=(this.value=='') ? '&laquo; search term &raquo;' :
    this.value;">

    Which is essentially the same, but still...

    Roy

    --
    Roy S. Schestowitz
    http://Schestowitz.com
     
    Roy Schestowitz, Aug 19, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark
    Replies:
    0
    Views:
    490
  2. Toby Inkster
    Replies:
    1
    Views:
    533
    Safalra
    Aug 18, 2005
  3. Lance Hoffmeyer

    script to search ebay?

    Lance Hoffmeyer, Jan 25, 2005, in forum: Python
    Replies:
    2
    Views:
    690
    Lance Hoffmeyer
    Jan 26, 2005
  4. Julia Briggs
    Replies:
    1
    Views:
    117
    Bob Bedford
    Jan 29, 2004
  5. Ignoramus12789
    Replies:
    3
    Views:
    337
    Ignoramus965
    Sep 9, 2005
Loading...

Share This Page