JavaScript变换表格边框颜色_层和布局特效

模板酷站
  •       2/5
  •       1
  •       2
  •       3
  •       4
  •       5
查看演示效果

      织梦DedeCMS视频教程买空间 租服务器 选网硕互联! 无忧站长工具,百度权重一键全查!

      用JavaScript控制表格边框不停的变换颜色,记得以前经常看到这种效果,代码也不复杂,直接复制就可用啦!

      <html> <head> <meta http-equiv="Content-Type" mrc="text/html; charset=gb2312"> <title>表格边框变换颜色代码</title> </head> <body> <table border="0" width="261" id="myexample" style="border:1px solid red"> <tr> <td>我的边框是不是变颜色了:?</td> </tr> </table> <script language="JavaScript1.2"> <!-- function flashit(){ if (!document.all) return if (myexample.style.borderColor=="blue") myexample.style.borderColor="red" else myexample.style.borderColor="blue" } setInterval("flashit()", 500) </script> </body> </html>