|
-
Oct 12th, 2000, 03:17 PM
#1
Thread Starter
Fanatic Member
Ok does anyone know how to make one of those Java things where u choose a price range for lets say a car and it spits u out a few cars that match that range. Or maybe car types or something. I need to put something like that on a webpage im making for a person, and i dont know how to do it.
What do i have to use to do that? Do i make an applet or do i hook it up to a database or how do i approach this? Please help!
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
-
Oct 13th, 2000, 02:08 AM
#2
Lively Member
a simple HTML FORM and some Javascript is all that's necessary
[code]
this is the javascript
selval = new Array(9);
selval[0] = "1.htm";
selval[1] = "2.htm";
selval[2] = "3.htm";
selval[3] = "4.htm";
selval[4] = "5.htm";
function showcars(idx)
{ var ix1 = idx;
if (ix1 < 0) {ix1 = document.selform.select1.selectedIndex;}
top.location = selval[ix1];
}
this is the <html>
<form name=selform>
<input type=button value="Prices" onclick="gonext(8)"> <select name=select1 onchange="showcars(-1)">
<option>$1</option>
<option>$2</option>
<option>$3</option>
<option>$4</option>
<option>$5</option>
<option selected>$6</option>
</select>
<input type=button value="Go!" onclick="showcars(-1)">
</form>
[code]
-
Oct 13th, 2000, 08:55 AM
#3
Thread Starter
Fanatic Member
Great! Thanks alot im gonna go try that right now!
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|