You are here: Re: Creating an eBay style search form... « HTML « IT news, forums, messages
Re: Creating an eBay style search form...

Posted by Roy Schestowitz on 10/01/57 11:24

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация