?? 12.15 慢慢變大的窗口.htm
字號:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>標(biāo)題頁</title>
<script language="javascript">
var Windowsheight=100;
var Windowswidth=100;
var numx=5;
function openwindow(thelocation){
temploc=thelocation;
if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById))
{
window.open(thelocation); //打開新窗口
return ; }
windowsize=window.open("","","scrollbars");
windowsize.moveTo(0,0); //移動窗口到0,0坐標(biāo)處
windowsize.resizeTo(100,100);//改變窗口大小
tenumxt();
}
function tenumxt(){
if (Windowsheight>=screen.availHeight-3) //高度超過窗體最大高度時
numx=0 ;
windowsize.resizeBy(5,numx);
Windowsheight+=5; //高度逐次加5
Windowswidth+=5; //寬度逐次加5
if (Windowswidth>=screen.width-5) { //寬度超過窗體最大寬度時
windowsize.location=temploc
Windowsheight=100
Windowswidth=100
numx=5
return
}
setTimeout("tenumxt()",50) //通過計時器,逐漸變大窗口
}
</script>
</head>
<body>
<a href="javascript:openwindow('http://www.google.com')">進入搜索</a>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -