132、精彩的变色文字

132、精彩的变色文字

脚本说明:

第一步:把如下代码加入<body>区域中

<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=250px;

     height=200px;}

</style>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

var rate = 1000

// do not edit below this line

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';

YammaYamma.className = F;

if (i > 2) i = 0;

timer = setTimeout('doThing()', rate);

   }        

}

//  End -->

</script>

<span id="YammaYamma">

<b>I love javascript very much----7stk.com</b>

</span>

 

 

 

第二步:把<body>中的内容改为:

<body onLoad="doThing()">

 

Write a comment

Comments: 0