DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> JavaScript入門知識 >> 關於JavaScript >> JS實現QQ圖片一閃一閃的效果小例子
JS實現QQ圖片一閃一閃的效果小例子
編輯:關於JavaScript     
復制代碼 代碼如下:
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>無標題文檔</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>
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved