<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)
{
event = event ? event : (window.event ? window.event : null);
//if (event.keyCode==13) location=bookpage
if (event.keyCode==13) location=index_page
if (event.keyCode==37)
{
if (prevpage!='' && prevpage!='上一篇:没有了 ')
location=prevpage;
else
alert('这是第一页');
}
if (event.keyCode==39)
{
if (nextpage!='' && nextpage!='下一篇:没有了 ')
location=nextpage;
else
alert('已经是最后一页了');
}
}
//-->
function getElement(aID)
{
return (document.getElementById) ? document.getElementById(aID): document.all[aID];
}
function makeRequest(url){
http_request=false;
if(window.XMLHttpRequest){//Mozilla,Safari,...
http_request=new XMLHttpRequest();
if(http_request.overrideMimeType){
http_request.overrideMimeType('text/xml');
}
}else if(window.ActiveXObject){//IE
try{
http_request=new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{
http_request=new ActiveXObject("Microsoft.XMLHTTP");
}catch(e){}
}
}
if(!http_request){
alert('Giving up:(Cannot create an XMLHTTP instance)');
return false;
}
return http_request;
}
</script>织梦cms教程
织梦CMS实现键盘翻页效果
我的站长站
2020-11-07
共人阅读
上一篇:织梦CMS显示用户ip地址方法
下一篇:织梦CMS后台提示验证码错误
最新更新
-
DedeCMS文章动态实时显示浏览次数方法
使用DedeCMS建站时,在文章页的信息页面,官方给出的调用文章浏览次数的标签是:{dede:field.click/}这个标签调用...
-
织梦CMS一天24小时内发布帖子标题加红色
1、打开arclist.htm文件,找到输出文章标题的代码块,通常是类似这样的代码:<a href="[field:arcurl/]" title="[...
-
织梦CMS报错“CSRF Token Check Failed”解决办法
织梦CMS报错“CSRF Token Check Failed”,以下是解决办法:1、打开dede/config.php,找到第63行:function csrf_ch...
-
channel标签调用子级栏目currentstyle无效
织梦CMS使用channel标签调用子级栏目显示currentstyle无效,解决方法如下:打开include/taglib/channel.lib.php...
-
织梦CMS后台登录界面验证码无法显示解决方法
问题我们发现织梦CMS后台登录界面的验证码无法显示,头部还多了一行空行,这种是什么问题?现在系统无法登录了,怎...
