代码如下:
<input type="hidden" id="nowpurl" value="list_{dede:field name='typeid'/}_{page}.html"/><p>跳转:<input class="jump_input" id="jump_input"> 页 <em onclick='jump_url()' style="cursor:pointer;">GO</em></p><script language="javascript">function isInteger(value){return(!isNaN(value)&&trim(value)!=""&&value.indexOf(".")==-1&&parseInt(value)>0)}function jump_url(){if(!isInteger(document.getElementById("jump_input").value)){alert("请填写数字")}else{if(document.getElementById("jump_input").value<=3161)
location.href=document.getElementById("nowpurl").value.replace("{page}",document.getElementById("jump_input").value);}}</script>
在线客服