7、不停闪烁的图片代码

7、不停闪烁的图片代码

<!--将以下代码加入HTML<Body></Body>之间-->

 

<BODY ONLOAD="soccerOnload()" topmargin="0">

<DIV ID="soccer" STYLE="position:absolute; left:150; top:0">

<IMG SRC="image\flag.gif" border="0">

</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 type="text/javascript" src=""></SCRIPT>

<SCRIPT language="JavaScript">

<!--

BaiduWriteAD("zouwenyedg","3");

//-->

</SCRIPT>

 

Write a comment

Comments: 0