?? 15.26 始終在屏幕右下角的圖片.htm
字號:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>標題頁</title>
<SCRIPT LANGUAGE="JavaScript">
function setVariables() {
imgwidth=235; //圖像的寬度
imgheight=19; //圖像的高度
if (navigator.appName == "Netscape") { //netscape下的位置設置
horz=".left";
vert=".top";
docStyle="document.";
styleDoc="";
innerW="window.innerWidth";
innerH="window.innerHeight";
offsetX="window.pageXOffset";
offsetY="window.pageYOffset";
}
else { //ie下的位置設置
horz=".pixelLeft";
vert=".pixelTop";
docStyle="";
styleDoc=".style";
innerW="document.body.clientWidth";
innerH="document.body.clientHeight";
offsetX="document.body.scrollLeft";
offsetY="document.body.scrollTop";
}
}
function checkLocation()
{
objectXY="rightBottom"; //獲取始終顯示在右下角的div
var availableX=eval(innerW); //最大x坐標
var availableY=eval(innerH); //最大y坐標
var currentX=eval(offsetX); //鼠標當前的x坐標
var currentY=eval(offsetY); //鼠標當前的y坐標
x=availableX-(imgwidth+30)+currentX; //最終div的x坐標
y=availableY-(imgheight+20)+currentY;//最終div的y坐標
evalMove();
setTimeout("checkLocation()",10); //定時移動
}
function evalMove() { //移動到指定位置
eval(docStyle + objectXY + styleDoc + horz + "=" + x);
eval(docStyle + objectXY + styleDoc + vert + "=" + y);
}
</script>
</head>
<body bgcolor="#fef4d9" onload="setVariables(); checkLocation();">
aaa<br />
aaa<br />
aaa<br />
aaa<br />
aaa<br />
aaa<br />
aa<br />
a<br />
aa<br />
a<br />
a<br />
a<br />
a<br />
<div id="rightBottom" style="position:absolute; visibility:show; left:235px; top:50px; z-index:2">
<table width=10 bgcolor=#ffffff><td>
<a href="http://www.google.net" onmouseover="window.status='我愛的搜索';return true" onmouseout="window.status='';return true"><center><img src="logo1.gif" width="240" height="20" border="0"></center></a></td>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -