|
1、拷贝下面的代码到你的html文件的<head>和</head>之间
<script Language="JavaScript"> <!-- Hide the
script from old browsers -- function surfto(form) { var
myindex=form.dest.selectedIndex location=form.dest.options[myindex].value; } //--> </script>
2、拷贝下面的代码到你的html文件的<body>和</body>之间
<form NAME="myform1"> <div
align="center"><center><p><select
NAME="dest" SIZE="1"> <option selected value="选项
">本站栏目 </option> <option
value="http://base.3322.net/pages/jiaocheng1.htm">制作教程</option> <option
value="http://base.3322.net/pages/cehua1.htm">网站策划</option> </select>
<input TYPE="button" VALUE=" go "
onClick="surfto(this.form)">
</p> </center></div> </form>
说明:其中的菜单名称和选项多少可以自己修改和添加,点击“go”后,链接文件名修改为你需要的html文件
|