⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 br2.js

📁 最全的介绍C语言结构体的使用方法和使用技巧!
💻 JS
字号:
//init cookie
function setCookie() 
{ 
  var FromUrl=window.location.toString();
      FromUrl=FromUrl.replace("http://","");
	  FromUrl=FromUrl.replace("www.","");
	  FromUrl=FromUrl.substring(0,FromUrl.indexOf("/"));
  var now=new Date();
//set cookie  expires date 1000ms*60*60
  now.setTime( now.getTime() + 1000 * 60 * 60 );
  var the_cookie = "FromUrl="+FromUrl+";expires="+now.toGMTString()+";path=/";
  document.cookie = the_cookie;//write Cookie
} 
function readCookie()
{ var the_cookie = document.cookie; 
  return the_cookie;
}
setCookie();
//end of init cookie
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? domainheight=200:domainheight=300
if (window.screen.width>600)
{domainheight=150;}
if (window.screen.width>800)
{domainheight=200;}
if (window.screen.width>1024)
{domainheight=350;}
//window.screen.width>800 ? domainleft=15:domainleft=120
var domainwidth=100;  //imagewidth
var domainleft=window.screen.width-domainwidth-30;
// <a href="http://www.now.net.cn">Domain Hosting email </a>    <a href="http://www.todayisp.com">Domain Hosting email</a>
function domainload()
{
if (navigator.appName == "Netscape")
{document.domain.pageY=pageYOffset+window.innerHeight-domainheight;
document.domain.pageX=domainleft;
domainmove();
}
else
{
domain.style.top=document.body.scrollTop+domainheight;//document.body.offsetHeight-domainheight;
domain.style.pixelLeft=domainleft;
domainmove();
}
}
function domainmove()
{
if(document.ns)
{
document.domain.top=pageYOffset+window.innerHeight-domainheight
document.domain.pageX=domainleft;
setTimeout("domainmove();",80)
}
else
{
domain.style.top=document.body.scrollTop+domainheight;//document.body.offsetHeight-domainheight;
domain.style.pixelLeft=domainleft;
setTimeout("domainmove();",80)
}
}

function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)


if (navigator.appName == "Netscape")
{document.write("<layer id=domain top=200 width=64 height=80><a href='http://www.now.cn' target='_blank'><img id='nowads_img' src='http://b.todayisp.com/100x300.gif' border='0'></a></layer>");
domainload()}
else
{
document.write("<span id=domain style='position: absolute;width:64;top:200;visibility: visible;z-index: 1'><a href='http://www.now.cn' target='_blank'><img id='nowads_img' src='http://b.todayisp.com/100x300.gif' border='0'></a></span>");
domainload()
}
function getClientSize()
{
    //pageW=window.document.body.offsetWidth-8;
    //pageH=window.document.body.offsetHeight;
    domainleft=window.document.body.offsetWidth-30-domainwidth;
}
window.onresize=getClientSize;
window.onload=getClientSize;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -