像QQ一样闪动的最新消息提示

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <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://tbwsy420.diandian.com/>  <span style="text-decoration: none"><font color="#FF0000">您有3条新的消息</font></span></a></span></div></td>   </tr>  </table> </div>

</body> </html>

posted @ 2013-04-20 18:21  tmscnz  阅读(140)  评论(0编辑  收藏  举报