这段代码实现的淡入淡出还算可以吧,比较平滑,同样出自JavaScript+CSS两者的配合。 JavaScript文字渐隐渐现显示 <!-- 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 --> 您知道吗?脚本之家就是Jb51.NET [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]