ITPub博客

首页 > IT职业 > IT图书 > 不断变换颜色的炫丽表格特效

不断变换颜色的炫丽表格特效

原创 IT图书 作者:chunzhisu 时间:2014-07-30 11:02:19 0 删除 编辑
  • 不断变换颜色的炫丽表格特效,不断变换背景色,很炫的感觉,不知道对你有没有用,说一定能用上。


点击(此处)折叠或打开

  1. <html>
  2. <head>
  3. <meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">
  4. <title>草坪销售</title>
  5. </head>
  6. <body>
  7. <script>
  8. l=Array(0,1,2,3,4,5,6,7,8,9,\'a\',\'b\',\'b\',\'c\',\'d\',\'e\',\'f\');
  9. function f(y)
  10. {
  11.     for(i=5;i<117;i++)
  12.     {
  13.         c=(i+y)%30;
  14.     if(c>15)
  15.         c=30-c;
  16.     eval(\"document.all[i].bgColor=\'00\"+l[c]+l[c]+\"00\'\");
  17.     }
  18.     y++;
  19.     setTimeout(\'f(\'+y+\')\',\'1\');
  20. }

  21. function p(x)
  22. {
  23.     document.write(\" \");
  24.     x++;
  25.     if((x%10==1) && (x%100!=1))
  26.     document.write(\"\");
  27.     if(x<101)
  28.     p(x);
  29.     else
  30.     {
  31.     document.write(\"\");
  32.     f(1);
  33.     }
  34. }

  35. document.write(\"\");
  36. p(1);
  37. </script>
  38. </body>
  39. </html>


  40. 来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29737856/viewspace-1242204/ ,如需转载,请注明出处,否则将追究法律责任。

    请登录后发表评论 登录
    全部评论

    注册时间:2014-07-04

    • 博文量
      95
    • 访问量
      122213