rightbottom.js

来自「最好用的站点内容管理系统 全部源代码都有」· JavaScript 代码 · 共 50 行

JS
50
字号
if (navigator.appName == "Netscape")
	document.ns = navigator.appName == "Netscape"
	window.screen.width>800 ? imgheight=190:imgheight=180
	window.screen.width>800 ? imgright=20:imgright=30
	
function RightBottomLoad()
{
	if (navigator.appName == "Netscape")
	{
		document.RightBottom.pageY=pageYOffset+window.innerHeight-imgheight;
		document.RightBottom.pageX=imgright;
		RightBottomMove();
	}
	else
	{
		RightBottom.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
		RightBottom.style.right=imgright;
		RightBottomMove();
	}
}
function RightBottomMove()
{
	if(document.ns)
	{
		document.RightBottom.top=pageYOffset+window.innerHeight-imgheight;
		document.RightBottom.right=imgright;
		setTimeout("RightBottomMove();",80)
	}
	else
	{
		RightBottom.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
		RightBottom.style.right=imgright;
		setTimeout("RightBottomMove();",80)
	}
}

function RightBottomReload(RBRTF) 
{ 
	if (RBRTF==true) with (navigator) 
	{
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) 
		  {
			document.RightBottomWidth=innerWidth; document.RightBottomHeight=innerHeight; onresize=MM_reloadPage;
		   }
	 }
	else if (innerWidth!=document.RightBottomWidth || innerHeight!=document.RightBottomHeight) location.reload();
}

RightBottomReload(true);
RightBottomLoad();

⌨️ 快捷键说明

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