woff 發表於 2008-9-23 21:11:56

文字隱現


<BODY> <table border="0" cellpadding="4" cellspacing="6" width="22%" height="36"> <tr> <td width="100%" height="22"><div id="fade" style="text-align:center; width:300px; height:30px; z-index:1; left: 285px; top: 274px"></div> <script type="text/javascript"> <!-- function fadetext() { fade.style.filter="alpha(opacity="+x+", style=0)"; x=((y<50)?x+4:x-4); y+=2; if(y==100) { z=((z>=texts.length-1)?1:z+1); y=0; fade.innerHTML=texts; fade.style.color=tcolor; } setTimeout("fadetext();", 100); } var texts=new Array(7), tcolor=new Array(7), x=0, y=0, z=1; texts="人生就像一場戲,因為有緣才相聚"; texts="相扶到老不容易,是否更該去珍惜"; texts="為了小事發脾氣,回頭想想又何必"; texts="別人生氣我不氣,氣出病來無人替"; texts="我若氣死誰如意,況且傷神又費力"; texts="鄰居親朋不要比,兒孫鎖事由他去"; texts="吃苦享樂在一起,神仙羨慕好伴侶"; tcolor="#ff6600"; tcolor="#ff6600"; tcolor="#ff6600"; tcolor="#ff6600"; tcolor="#ff6600"; tcolor="#ff6600"; tcolor="#ff6600"; fade.innerHTML=texts; fade.style.color=tcolor; window.onload=fadetext; //--></script> </font> </td> </tr> </table> </center> </div> </td> <td width="245" height="1"> </td> </tr> </table> </BODY>
※字可改

鄭小可 發表於 2011-12-2 00:59:27

謝謝分享
頁: [1]
查看完整版本: 文字隱現