可以闪动的假消息提示代码

来源:互联网 发布:林立雯的淘宝店叫什么 编辑:程序博客网 时间:2024/06/13 06:29

<html xmlns=""> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>像QQ一样的闪动消息</title> <script> var styChangeTimes=0; function changeSty(id) { obj=document.getElementById(id); styChangeTimes = styChangeTimes+1; if((styChangeTimes%2)==0) obj.style.display="none"; else obj.style.display=""; if(styChangeTimes<200) { window.setTimeout("changeSty('"+id+"')",200); } else { styChangeTimes=0; obj.style.display=""; } } </script> </head> <body onload="changeSty('qpsh_com')"> <div align="center"> <table border="0" width="300" cellpadding="0" style="border-collapse: collapse" height="30" id="table1"> <tr> <td><div id="qpsh_com" > <img border="0" src="icon/images/xinxi.jpg" width="14" height="14"><span style="font-size: 9pt"> <a href="http://zygxsq.kuaizhan.com/"> <span style="text-decoration: none"><font color="#FF0000">您有3条新的消息</font></span></a></span></div></td> </tr> </table> </div> </body> </html>