Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: Creating an eBay style search form...

Reply
Thread Tools

Re: Creating an eBay style search form...

 
 
Roy Schestowitz
Guest
Posts: n/a
 
      08-19-2005
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ebay ebay ebay ebay ebay ebay ebay ebay ebay ebay ebay ebay ebay Bigbazza Computer Support 0 10-16-2007 09:05 AM
ebay ebay ebay Bigbazza Computer Support 0 10-16-2007 09:04 AM
Re: Creating an eBay style search form... Toby Inkster HTML 1 08-18-2005 06:31 PM
Re: Creating an eBay style search form... Mark HTML 0 08-18-2005 01:24 PM
Need help with Style conversion from Style object to Style key/value collection. Ken Varn ASP .Net Building Controls 0 04-26-2004 07:06 PM



Advertisments