标签:
html:
<HTML>
<head>
<title>闪烁图片</title>
</head>
<body onload="soccerOnload()" topmargin="0">
<DIV ID="soccer" STYLE="position:absolute; left:150; top:0">
<a href="" target="_blank">
<img src="img/love4.png" border="0" /></a>
</DIV>
<script type="text/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>
</body>
</HTML>
result:
标签:
原文地址:http://www.cnblogs.com/theWayToAce/p/5451014.html