//另开页面
Html页面代码
<option>====友情链接====</option><select name="select" id="select" style="height: 25px; width: 240px; line-height: 25px;" οnchange="s_click(this)">
<option value='http://www.baidu.com'>====xxxxxxxx====</option>
<option value='http://www.baidu.com'>====xxxxxxxx====</option>
</select>
JS代码
<script type="text/javascript">
//select跳页
function s_click(obj) {
var num = 0;
for (var i = 0; i < obj.options.length; i++) {
if (obj.options[i].selected == true) {
num++;
}
}
if (num == 1) {
var url = obj.options[obj.selectedIndex].value;
window.open(url); //这里修改打开连接方式
}
}
</script>
//本页跳转
<select multiple="multiple" onchange="top.location=this.value;">
<option value="http://www.sohu.com/">Sohu</option>
<option value="http://www.google.com/">Google</option>
</select>
参考自:http://topic.csdn.net/u/20090522/17/6bed37d9-a7cb-4a2a-9e04-7ba6d6524602.html