<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

DEDECMS列表页分页输入数字跳转到指定分页代码

时间:2020-12-10

编辑打开列表页模板,默认路径为:/templets/default/list_article.htm

  将下列代码插入<head></head>之间,也可以做JS调用。
 

01 <script type="text/javascript">// <![CDATA[
02 function onCheckPage(){
03 var beginPage = parseInt(document.beginPagefrm.beginPage.value);
04 if(isNaN(beginPage)){
05 alert("请输入数字!");
06 }
07 if(beginPage <= 0 ) { beginPage = 1; } if(beginPage > 100){
08 beginPage = 100;
09 }
10 if(beginPage > 1 ) {
11 document.beginPagefrm.action = "list_{dede:field name='typeid'/}_" + beginPage + ".html";
12 else 
0