JS实现QQ图片一闪一闪的效果小例子
人气:0复制代码 代码如下:
<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>
加载全部内容