71.html

来自「javescript网页特效80个例子」· HTML 代码 · 共 28 行

HTML
28
字号
<html>
<head>
<title>窗口落下的效果</title>
</head>
<body>
<script language="Javascript"> 
<!-- 
var thetitle ="窗口"; 
function GoThere(gothr) { 
document.location = gothr; 
}
function RunawaySc(speed,theurl) { 
 if (self.moveBy && document.all) { 
  if (theurl) document.title = thetitle; 
  if (!speed) speed = 2; 
  for (var dp = 0; dp < screen.height; dp+=speed) { 
    self.moveBy(0,speed); 
  } 
 if (dp == screen.height) { 
  self.moveBy(0,-screen.height); 
}} 
if(theurl) eval('setTimeout("GoThere(\''+theurl+'\')",500)'); 
}
//--> 
</script> 
<a href="javascript:void(0)" onclick="RunawaySc(2,'http://www.sina.com.cn');"><b>连接到新浪</b></a>
</body>
</html>

⌨️ 快捷键说明

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