35.html

来自「通过学习编写了一些javascript代码,希望和大家一块交流学习.」· HTML 代码 · 共 45 行

HTML
45
字号
<html>
<head>
<title>下折文字</title>
<style>
.F1 {filter: blur(Strength=20);  /*设置下折宽度*/
     width=500px;
     height=50px;}
.F2 {filter: blur(Strength=20);  /*设置下折宽度*/
     width=200px;
     height=50px;}
.F3 {filter: blur(Strength=20);  /*设置下折宽度*/
     width=100px;
     height=50px;}
</style>
<SCRIPT LANGUAGE="JavaScript">
var rate = 1000  //设置下折间隔时间
var i = 0;
var F = 'F1';
function doThing() {
if (document.getElementById && document.all) {
ok = true;
i++;
if (i==1) F = 'F1';
if (i==2) F = 'F2';
if (i==3) F = 'F3';
dd.className = F;
if (i > 2) i = 0;
timer = setTimeout('doThing()', rate);
   }         
}
</script>
</head>
<body onLoad="doThing()">
 <table width="450" cellspacing="0" cellpadding="10">
  <tr> 
   <td>
    <font face="Arial" size="4" color="red"> 
     <p id="dd"> <b><a href="http://www.sina.com.cn">新浪网站</a> - 该是一个综合性的全方位的网站<big>*欢迎光临*</big></b>
     </p>
    </font>
   </td>
  </tr>
 </table>
</body>
</html>

⌨️ 快捷键说明

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