加入这段javascript。在页头。
<SCRIPT language=javascript> function mbar(sobj) { var docurl =sobj.options[sobj.selectedIndex].value; if (docurl != "") { open(docurl,'_self'); sobj.selectedIndex=0; sobj.blur(); } } </SCRIPT>
用PHP输入指定的字符
</select>页<!--YuanzifanUpdate End--> <!--YuanzifanUpdate Start--> <select onchange=mbar(this) name="select"> <?PHP for($xPageCode=1;$xPageCode<=$total_Page_nums;$xPageCode++) echo "<option value=\"$RedirectURL$xPageCode\">".$xPageCode."</a></option>" ?> </select>页<!--YuanzifanUpdate End-->
用For循环写入Select 的Value,然后Value设置成超链接。
这个Select 的标签要加上onChange事件,这个事件就是跳转。
评论