Regarding dropdownlist
I've a dropdownlist which is designed using html select tag. the thing is its working fine in ie and not working in mozilla, opera and google chrome... can any one help.. the code used is
<select name="select nav" size="1" style="background-color:#FFFFFF" onChange="location.href=options[selectedIndex].value;">
<option value="locations_aberdeen.html">Aberdeen
<option value="locations_arendal.html" selected>Arendal
<option value="locations_athens.html">Athens
<option value="locations_bangkok.html">Bangkok
<option value="locations_beijing.html">Beijing
<option value="locations_capetown.html">Capetown
<option value="locations_dubai.html">Dubai
<option value="locations_开发者_运维百科durban.html">Durban
<option value="locations_genoa.html">Genoa
<option value="locations_gsc.html">Global Support Centre
<option value="locations_hochiminh.html">Ho Chi Minh City
<option value="locations_hong-kong.html">Hong Kong
<option value="locations_houston.html">Houston
<option value="locations_jakarta.html">Jakarta
<option value="locations_kuala-lumpur.html">KualaLumpur
<option value="locations_limassol.html">Limassol
<option value="locations_london.html">London
<option value="locations_lowestoft.html">Lowestoft
<option value="locations_manila.html">Manila
<option value="locations_miami.html">Miami
<option value="locations_moscow.html">Moscow
<option value="locations_mumbai.html">Mumbai
<option value="locations_new-delhi.html">New Delhi
<option value="locations_niteroi.html">Niteroi
<option value="locations_oslo.html">Oslo
<option value="locations_perth.html">Perth
<option value="locations_riga.html">Riga
<option value="locations_shanghai.html">Shanghai
<option value="locations_singapore.html">Singapore
<option value="locations_southampton.html">Southampton
<option value="locations_tokyo.html">Tokyo
<option value="locations_vancouver.html">Vancouver
</select>
Seems to work for me in firefox 3.6.10
This might work better:
onchange="window.location.href = this.value;"
Also, close all your option tags to have better HTML, some browsers might not like it.
精彩评论