How do I make a HTML Code for a custom search box? - Mustang Evolution

Go Back   Mustang Evolution > Ford Mustang | Wrenching, Care and General Topics > General Mustang Discussion



Reply
 
Thread Tools Search this Thread
Please support our sponsors and let them know you heard about them here!
Old 03-23-2010, 03:45 PM   #1
Registered Member
Regular
 
Join Date: Aug 2009
Posts: 44
How do I make a HTML Code for a custom search box?

Hey guys, What im trying to do is a make a HTML code with a custom search box.

And what I want to do is search ebays completed listings for cars, so I can get an idea on how much they are going for. (Im in the car buisness)

So If I put in this link: http://motors.completed.shop.ebay.co...r&_osacat=6001

It will show me all the completed & sold listings for 1965 mustang.
I want a search box where I can put in anything and it will search it all I need to change is this field where the "****************" is and any car would go in there.

http://motors.completed.shop.ebay.co...r&_osacat=6001


So all I want to do is type in a car name and click Go and I got that page.. PLEASE HELP HTML WIZARDS!! THANK YOU!!
chesmu is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old 03-23-2010, 03:59 PM   #2
Registered Member
Regular
 
Join Date: Aug 2009
Posts: 40
How do I make a HTML Code for a custom search box?

You'll need Javascript for that - you can't do it in HTML. HTML is just what you typed into the HTML file - if you want that link to change based on what the user types into a text box, you'll need programming to change the link on the fly. That means first learning computer programming, then learning Javascript. Start with http://www-old.oberon.ethz.ch/WirthPubl/AD.pdf to learn programming.
raedford is offline   Reply With Quote
Old 03-23-2010, 04:09 PM   #3
Registered Member
Regular
 
Join Date: Aug 2009
Posts: 39
How do I make a HTML Code for a custom search box?

Here is a quick script I just wrote up for you. It uses HTML and JavaScript, just save it as anything.html (the ".html" at the end is required for it to work.) Then you can open it with any web browser and just type in what you want and hit search.

<html>
<head>
<title>Ebay Search</title>
<script language="JavaScript">
function Search() {
if (document.dsearch.searchbox.value!="") {
var loc = "http://motors.shop.ebay.com/items/?_nkw…
window.open(loc + document.dsearch.searchbox.value) ;
}
else {
alert("Please enter something to search.")
document.doingasearch.searchbox.focus();
}
}
</script>
</head>
<body>
<form name="doingasearch" id="dsearch">
<input name=searchbox type=text>

<input type="button" value="Search" onclick="return Search();">
</form>
birkie is offline   Reply With Quote
Reply

Lower Navigation
Go Back   Mustang Evolution > Ford Mustang | Wrenching, Care and General Topics > General Mustang Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are On
Refbacks are Off


» Like Us On Facebook



06:49 PM


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0

MustangEvolution.com is in no way associated with or endorsed by Ford Motor Company.