卓越飞翔博客卓越飞翔博客

卓越飞翔 - 您值得收藏的技术分享站
技术文章64334本站已运行4115

织梦CMS实现键盘翻页效果

 
 
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; 
} 

卓越飞翔博客
上一篇: 织梦CMS显示用户ip地址方法
下一篇: JS距离2020过年倒计时代码

相关推荐

留言与评论(共有 0 条评论)
   
验证码:
隐藏边栏