方法一:
<script language="javascript" type="text/javascript">
function jumpmenu(targ,selObj)
{
window.open(selObj.options[selObj.selectedIndex].value);
selObj.selectedIndex=0;
}
</script>
<select name="select" onChange="jumpmenu('new',this)">
<option>---请选择---</option>
<option value=http://www.baidu.com>公安局</option>
</select>
方法二:
<script type="text/javascript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<select style="WIDTH: 110px"
οnchange="if(this.selectedIndex && this.selectedIndex!=0){window.open(this.value);}this.selectedIndex=0;"
name="select">
<option selected="selected">==友情链接==</option>
<option value="http://www.163.com">网易</option>
<option value="http://www.google.cn">谷歌</option>
<option value="http://www.baidu.com">百度</option>
<option value="http://www.sina.com">新浪</option>
</select>