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

📄 上下跳动的文字.txt

📁 网页特效的代码,在美化网页时有很大的作用
💻 TXT
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>

<script LANGUAGE="JavaScript">

done = 0;
step = 4

function anim(yp,yk)
{
 if(document.layers) document.layers["napis"].top=yp;
 else  document.all["napis"].style.top=yp;

 if(yp>yk) step = -4
 if(yp<60) step = 4

 setTimeout('anim('+(yp+step)+','+yk+')', 35);
}


function start()
{
 if(done) return
 done = 1;

 if(navigator.appName=="Netscape") {
  document.napis.left=innerWidth/2 - 145;
  anim(60,innerHeight - 60)
 }
 else {
  napis.style.left=11;
  anim(60,document.body.offsetHeight - 60)
 }

}

//-->
</script>

<div id="napis"
style="position: absolute; top: 7; color: #D23842; font-family: Arial, Helvetica; font-weight: bold; font-size: 40px; left: 12; width: 645; height: 54">
<!-- 改变下面文字的属性!-->
<p><font size="3" face="宋体" color="FF0000">欢迎光临ASP.NET学习网站!</font></p>
</div><script LANGUAGE="JavaScript">
<!--
 setTimeout('start()',10);
//-->
</script>


</head>

<body >



</body>
</html>

⌨️ 快捷键说明

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