<script language="JavaScript">
<!–
function FP_jumpMenu(el,frm,sel) {//v1.0
var href=el.options[el.selectedIndex].value; if(sel) el.selectedIndex=0;
if(‘_new’==frm) open(href); else eval(frm+".location=’"+href+"’");
}
// –>
</script>
<select size="1" onChange="FP_jumpMenu(this,’window’,false)" id="id1" name="D1" style="font-size: 9pt; border-style: solid; border-width: 1px">
这段代码可以换种写法
<SELECT onchange="javascript:location.href(this.options[this.selectedIndex].value)" id="id1" name="D1" style="font-size: 9pt; border-style: solid; border-width: 1px">
评论前必须登录!
注册