图片像QQ有消息闪动的代码:

<DIV ID="soccer" STYLE="position:absolute; left:150; top:0;visibility:hidden;">
<a href="http://图片的链接.com" target="_blank">
<IMG SRC="图片URL" border="0"></a>
</DIV>
<SCRIPT LANGUAGE="JavaScript">
var msecs = 500; //改变时间得到不同的闪烁间隔;
var counter = 0;
function soccerOnload() {
setTimeout("blink()", msecs);
}
function blink() {
soccer.style.visibility =
(soccer.style.visibility == "hidden") ? "visible" : "hidden";
counter +=1;
setTimeout("blink()", msecs);
}
</SCRIPT>
<script language="javascript">soccerOnload()</script>

你可能感兴趣的:(JavaScript,qq)