<SCRIPT language=>document.onkeydown = pageEvent;var prevpage="http://www.111cn.net/";var nextpage="http://www.111cn.net/";function pageEvent(evt){evt = evt ||window.event;var key=evt.which||evt.keyCode;if (key == 37) location = prevpageif (key == 39) location = nextpage};</SCRIPT>
$this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a> ";
$this->PreNext['pre'] = "$mlink ";$this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
<script type="text/javascript" language="javascript"><!--document.onkeydown=nextpage;var prevpage='{dede:prenext get='pre'/}';var nextpage='{dede:prenext get='next'/}';var index_page = "index.html";//var bookpage="index.html";function nextpage(event){eventevent = event ? event : (window.event ? window.event : null);//if (event.keyCode==13) location=bookpageif (event.keyCode==13) location=index_pageif (event.keyCode==37){if (prevpage!='' && prevpage!='上一篇:没有了 ')location=prevpage;elsealert('这是第一页');}if (event.keyCode==39){if (nextpage!='' && nextpage!='下一篇:没有了 ')location=nextpage;elsealert('已经是最后一页了');}}//-->function getElement(aID){return (document.getElementById) ? document.getElementById(aID): document.all[aID];}</script>
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛