19、动态波浪效果的文字

19、动态波浪效果的文字

<html>

 

<head>

<title>网页特效---动态波浪效果的文字</title>

 

</head>

 

<body onload="if (document.all)test()">

<script language="javascript">

<!--

if (document.layers)

 {

 alert("Your Browser is not capable of displaying this effect.\nPick another.");

 opener.gO();window.close();

 }

else

if (document.all){

var step=3;

var xstep=0;

var msg='★欢迎光临我的主页!!';

document.write("<center><div id='water' style='position:relative;width:450px;height:100px;font-family:Verdana;font-size:40px;color:#ff0000'>"+msg+"</div></center>");

function test(){

document.all.water.style.filter='wave(freq=3, strength=10, phase='+xstep+', lightstrength=45, add=0, enabled=1)';

xstep+=step;

TIMER=setTimeout('test()',10);

}

}

//-->

</script>

 

</body>

</html>

 

Write a comment

Comments: 1
  • #1

    csr04 (Tuesday, 01 September 2009 14:05)

    test