当前位置:首页 > 设计在线 > 网页设计 > CSS/Xhtml > 极酷的表格-表格的颜色不断变化

极酷的表格-表格的颜色不断变化

点击次数:34 次 发布日期:2008-11-21 16:03:27 作者:源代码网
源代码网推荐
以下为引用的内容:

源代码网整理以下<html>

源代码网整理以下<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>中国建爱问CPU特效演示,极酷的表格</title>
</head>

源代码网整理以下<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>

源代码网整理以下</body>

源代码网整理以下</html>

源代码网供稿.
网友评论 (0)
会员中心
设计在线
本站推荐
设计在线之精华