熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

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

2022-06-13   來源: JSP教程 

  <HTML>
<HEAD>
<META httpequiv="ContentType" content="text/html; charset=gb">
<TITLE>無標題文檔學無憂(wwwxuecom)</title>
</HEAD>
<BODY>
<IMG id="imgId" style="visibility:visible " src="LOGOgif">
<SCRIPT language="javascript">
function showImg()
{
    if(imgIdstylevisibility == "visible")   
//如果可見則隱藏
        imgIdstylevisibility = "hidden";
    else
        imgIdstylevisibility = "visible";   
//設置圖像可見
    setTimeout(showImg());              
//間隔的毫秒
}
showImg();
</SCRIPT>
</BODY>
</HTML>


From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20025.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.