Here is the function, it works perfectly in IE, but does nothing in
Firefox. Help! :)
<form name ="browsedistrict">
<FONT SIZE="2" FACE="arial, helvetica">Browse by District:<select
name="selectdistrict" size="1" onchange="gotodistrict()">
<option value="none">--Select a District--</option>
<option value="amaddist">Amador</option>
<option value="antdist">Antelope Valley</option>
<option value="buttdist">Butte</option>
..
..
..
</select>
</form>
Here is the javascript function:
function gotodistrict(){
if (browsedistrict.selectdistrict.value == "amaddist")
{
map.addOverlay(amaddist);
map.centerAndZoom(new GPoint(-120.498480, 38.485401), 8);
}
else if (browsedistrict.selectdistrict.value == "antdist")
{
map.addOverlay(antdist);
map.centerAndZoom(new GPoint(-118.029074, 34.630379), 8);
}
else if (browsedistrict.selectdistrict.value == "buttdist")
{
map.addOverlay(buttdist);
map.centerAndZoom(new GPoint(-121.607870, 39.675216), 8);
}
..
..
..
}