织梦现键盘左右方向键翻页的方法
I..复制js代码到内容页和列表页织梦模板中
$(document).ready(function(){
varprevpage=$("#pre").attr("href");
varnextpage=$("#next
更多精彩就在: 51免费论文网|www.jxszl.com
").attr("href");
$("body").keydown(function(event){
if(event.keyCode==IIIVII&&prevpage!=undefined)location=prevpage;
if(event.keyCode==IIIIX&&nextpage!=undefined)location=nextpage;
});
});
II.内容页调用代码修改
打开include/arc.archives.class.php文件
找到
$this->PreNext[pre]="上I.篇:
修改为
$this->PreNext[pre]="上I.篇:
找到
$this->PreNext[next]="下I.篇:
修改为
$this->PreNext[next]="下I.篇:
III.列表页调用代码修改
打开include/arc.listview.class.php文件
找到
$prepage.="
修改为
$prepage.="
找到
$nextpage.="
修改为
$nextpage.="
原文链接:http://www.jxszl.com/biancheng/dedecms/76417.html