Posted in Javascript onMay 08, 2015
代码如下,保存到HTML文件也可以查看效果:
<html> <head> <meta charset="utf-8"> <title>表格边框变换颜色代码</title> </head> <body> <table border="0" width="261" id="change_3water_net" style="border:1px solid red"> <tr> <td>等待,然后注意看边框是不是变色了?</td> </tr> </table> <script> <!-- function hovertreecolor(){ if (change_3water_net.style.borderColor=="blue") change_3water_net.style.borderColor="red" else change_3water_net.style.borderColor="blue" } setInterval("hovertreecolor()", 3000) </script> </body> </html>
以上所述就是本文的全部内容了,希望大家能够喜欢。
JavaScript实现自动变换表格边框颜色
- Author -
hebedich声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@