143、下拉菜单导航

143、下拉菜单导航

脚本说明:

把如下代码加入<body>区域中

<script language="JavaScript">

<!--

function surfto(form) {

       var myindex=form.smallboy.selectedIndex

       window.open(form.smallboy.options[myindex].value, "", "toolbar=no,location=yes,directories=no,status=no,menubar=no,scrollbars=yes, resizable=yes,copyhistory=yes,width=600,height=400");

}

//-->

</script>

<form name="myform">

<center>

<select name="smallboy" size="1">

<option selected value="#">★★请选择链接★★</option>

<option value="http://www.163.com">网易</option>

<option value="http://www.7stk.com">7stk</option>

<option value="http://www.sina.com.cn">新浪网</option>

<input TYPE="BUTTON" VALUE="打开" onClick="surfto(this.form)">

</select></center>

</form>

Write a comment

Comments: 0