Javascript help?!?

[POT]ForSale

Veteran X
<html>

<head>
http-equiv="content-type" content="text/html;charset=iso-8859-1">
name="generator" content="Adobe GoLive 6">
<title>Welcome to Adobe GoLive 6</title>
language="JavaScript">
out = new Array()
out [0] = new Array("None")
out [1] = new Array("Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","District of Columbia","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming","Not Applicable")
out [2] = new Array("Alberta","British Columbia","Edward Island","Manitoba","New Brunswick","Newfoundland","Northwest Territories","Nova Scotia","Ontario","Quebec","Saskatchewan","Yukon Territory","Other")
out [3] = new Array("Baltic States","Belgium","Bulgaria","Croatia ","Czech Republic","Denmark","Finland","France","Germany","Hungary","Iceland","Ireland","Italy","Liechtenstein","Luxembourg","Netherlands","Norway","Poland","Portugal","Portugal","Romania","Russia","Slovakia","Spain","Sweden","Switzerland","The Mediterranean","United Kingdom")

function DynamicState()
{
var selectedItem = document.setup.State.selectedIndex;

window.document.setup.State.length = 0;

for (menuOpt in out[selectedItem])
{
window.document.setup.State.options[window.document.setup.State.length]=new Option(out[selectedItem][menuOpt],window.document.setup.State.length)
}

window.document.setup.State.selectedIndex=0
}
</script>

</head>

bgcolor="#ffffff">
<Form Name="setup" Method=Post>
<tr>
<td>
<Select Name="Main" onChange="DynamicState()">

<Option Selected Value= 0 >Select Location
<Option Value= 1 >United States
<Option Value= 2 >Canada
<Option Value= 3 >Europe

</select>
     
<Select name="State">
<option Selected value="0">None
</Select>





</Form>
</tr>
</td>

</body>

</html>
____________________________________________________________

Can someone help me get this working Thanx
 
ergh. hold up, lemme check

bleh, looks like you're missing some stuff.

www.carpoint.com grab the bits and pieces you need from there. they have what you need basically
 
Last edited:
Back
Top