不停变化闪动的表格,而且背景也在变化 - 中国WEB开发者网络 (http://www.webasp.net) -- 网页特效 (http://www.webasp.net/javascript/) --- 不停变化闪动的表格,而且背景也在变化 (http://www.webasp.net/javascript/1/516.htm) |
| -- 发布日期: 2005-06-15 |
| <!-- 网页特效代码由[中国WEB开发者网络:http://www.ChinaWebDev.com]提供! --> <!-- 要实现此效果需要 1 个步骤: --> <!-- 第 1 步: --> <!-- 把下面的代码加到<BODY></BODY>区域中: --> <script> l=Array(0,1,2,3,4,5,6,7,8,9,'a','b','b','c','d','e','f'); function f(y) { for(i=5;i<117;i++) { c=(i+y)%30; if(c>15) c=30-c; eval("document.all[i].bgColor='00"+l[c]+l[c]+"00'"); } y++; setTimeout('f('+y+')','1'); } function p(x) { document.write("<td> </td>"); x++; if((x%10==1)&&(x%100!=1)) document.write("</tr><tr>"); if(x<101) p(x); else { document.write("</tr>"); f(1); } } document.write("<body bgcolor=0><table width=300 height=300 border=0 cellpadding=0 cellspacing=0><tr>"); p(1); </script> |
| webasp.net |