萬盛學電腦網

 萬盛學電腦網 >> 腳本專題 >> javascript >> JS實現QQ圖片一閃一閃的效果

JS實現QQ圖片一閃一閃的效果

<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>無標題文檔-學無憂(www.xue51.com)</title>
</HEAD>
<BODY>
<IMG id="imgId" style="visibility:visible " src="LOGO1.gif">
<SCRIPT language="javascript">
function showImg()
{
    if(imgId.style.visibility == "visible")   
//如果可見,則隱藏
        imgId.style.visibility = "hidden";
    else
        imgId.style.visibility = "visible";   
//設置圖像可見
    setTimeout('showImg()',300);              
//間隔的毫秒
}
showImg();
</SCRIPT>
</BODY>
</HTML>

copyright © 萬盛學電腦網 all rights reserved