473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Creating an eBay style search form...

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.

I have looked at the source code for the page but nothing is jumping out at
me...

Any ideas?

TIA

Mark
Aug 18 '05 #1
6 1778
"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;">

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Aug 18 '05 #2
oh yeah!!! that's the puppy

nice one Phil

you da man...
"Philip Ronan" <in*****@invalid.invalid> wrote in message
news:BF2A3C5F.36B8F%in*****@invalid.invalid...
"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;">

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/

Aug 18 '05 #3
Mark wrote:
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.


http://tobyinkster.co.uk/

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Aug 18 '05 #4
Toby Inkster wrote:
Mark wrote:
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.


http://tobyinkster.co.uk/


Erm...

Warning: Unknown modifier '/' in
/home/users/tai/public_html/vhosts/tobyinkster.co.uk/includes/google_hilite.php
on line 42

Warning: Unknown modifier '\' in
/home/users/tai/public_html/vhosts/tobyinkster.co.uk/includes/google_hilite.php
on line 37

--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/

Aug 18 '05 #5
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
Aug 19 '05 #6
In article <1124363346.4748cc1f2b359c6ed4061513fe72c2c8@teran ews>, 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.

I have looked at the source code for the page but nothing is jumping out at
me...

Any ideas?


<input type="text" name="this" value="START NEW SEARCH"
onfocus="if (this.value == 'START NEW SEARCH') this.value='';" >

or something similar.

Bye.
Jasen
Aug 24 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lance Hoffmeyer | last post by:
Hi all, Anyone know where I can find a python script to search ebay? I have been looking around but haven't found anything. I know there must be one somewhere so I am probably just looking in...
77
by: nospam | last post by:
Reasons for a 3-tier achitecture for the WEB? (NOTE: I said, WEB, NOT WINDOWS. DON'T shoot your mouth off if you don't understand the difference.) I hear only one reason and that's to switch a...
20
by: Gaz | last post by:
In Internet Explorer 6 I'm having a problem with the httprequest object. I use it to call a webservice and display the result in the readystate event handler. This works the first time I call it...
2
by: Iain Miller | last post by:
Now this shouldn't be hard but I've been struggling on the best way as to how to do this one for a day or 3 so I thought I'd ask the assembled company..... I'm writing an application that tracks...
0
by: eBay-Mitglied gret | last post by:
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD> <TABLE cellSpacing=0 cellPadding=2...
5
by: Doc John | last post by:
I need to create several Windows Forms and I'm thinking of creating a base Form from which I can derive all Forms. Is it possible to include something in that Base Form so that all Forms I create...
2
by: EGdesign | last post by:
Hi everybody! does anyone know a script to have an eBay-style dropdown menu? (the one that shows up pointing on "Categories") thanx in advance for your answers.
1
roccos
by: roccos | last post by:
Hi guys, How to create a search engine (script) which displays search results from Google, Amazon, eBay, etc Including our own results. I have experience in developing database driven search...
1
by: matz2k | last post by:
I've got a big problem with the CSS layout which I've produced with Photoshop/Dreamweaver especially for my ebay auctions. This is what it looks like...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.