Русский
<!-- 要完成此效果把如下代码加入到<body>区域中 --> <!-- http://www.downcodes.com --> <!-- bbs http://www.downcodes. com/bbs--> <script Language="javascript"> <!-- function gothere(){ var thebox=document.mycombowopt if (thebox.windowoption.checked){ if (!window.newwindow) newwindow=window.open ("") newwindow.location= thebox.example.options[thebox.example.selectedIndex].value } else location= thebox.example.options[thebox.example.selectedIndex].value } //--> </script> <form name="mycombowopt"> <select name="example" size=1> <option value="http://www.163.com">网易</option> <option value="http://www .sohu.com">搜狐</option> <option value="http://www.sina.com.cn">新浪</option> <option value="http://www.downcodes.com">本站</option> </select> <input type="button" value="Go!" onClick="gothere()"> <br> <input type="checkbox" name="windowoption" value="ON">新窗访问</p> </form>