9-6.htm

来自「JScript网页特效,包含很多的实现网页特效的方法.」· HTM 代码 · 共 60 行

HTM
60
字号
<html>
<head>
<title>§9.6 变幻的彩色文字</title>

<style>

.F1 {filter: glow(Color=#FF8000,Strength=10);
     width=200px;
     height=200px;}
     
.F2 {filter: glow(Color=#00FF00,Strength=9);
     width=150px;
     height=200px;}
     
.F3 {filter: glow(Color=#0080FF,Strength=12);
     width=100px;
     height=200px;}
     
</style>
<script>

var rate = 500

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'  
      myfont.className=F
      if (i > 2) i = 0
      timer=setTimeout('doThing()', rate)
   }         
}

</script>

</head>

<body bgcolor="#000000" onload="doThing()">

<table width="200" cellspacing="0" cellpadding="10">
  <tr>
    <td>
      <center>
        <font face="Courier" size="5" color="#FFFFFF">
        <p id="myfont">
        <b>欢迎光临我的主页!</b>
        </p>
        </font>
      </center>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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