167、文字循环隐现

167、文字循环隐现

脚本说明:

把如下代码加入<body>区域中

<SCRIPT LANGUAGE="JavaScript1.2">

<!-- Begin

ie4 = ((navigator.appVersion.indexOf("MSIE")>0) && (parseInt(navigator.appVersion) >= 4));

var count = 0, count2 = 0, add1 = 3, add2 = 10, timerID;

function show() {

if (ie4) {

count += add1;

count2 += add2;

delay = 30;

if(count2 > 100) count2 = 100;

if(count > 100) {

count = 100;

add1 = -10;

add2 = -3;

delay = 350;

}

if(count < 0) count = 0;

if(count2 < 0) {

count2 = 0;

add1 = 3;

add2 = 10;

delay = 200;

}

fader.style.filter = "Alpha(Opacity="+count2+",FinishOpacity="+count+",style=2)";

timerID = setTimeout("show()", delay);

   }

}

window.onload = show;

//  End -->

</script>

<div id="fader" style="width:480; Filter:Alpha(Opacity=0,FinishOpacity=0,style=2)">

<h1>

<font family="Arial, Helvetica" color="maroon" size="+3">

welcome to

<br>

www.7stk.com

<br>

thank you!

</font>

</h1>

</div>

Write a comment

Comments: 0