直接跳转到想进入的页面,代码如下:
找到
/template/page/html/pager.phtml
找到代码位置:
<?php endif;?> </ol> 和</div>之间
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<li style="width:100px;border:0px;margin-left:2px"class="next-icon"> <form onsubmit="return true;"class="custom_form"action=""name="p"method="get"> <input type="text"value=""name="p"class="custom_page"style="width: 30px; height: 23px; "> <input type="submit"class="gogogo"onclick="submitCustomPages(this);"value="Go"name="submit"> </form> <script type="text/javascript"> function submitCustomPages(self){ varinputValue = jQuery.trim(jQuery(self).prev().val()); if(inputValue && !isNaN(inputValue)){ varvv = parseInt(inputValue); }else{ alert("Pleas ente a umber"); return false; }return ture; } </script> </li> |