.

.

.

.

轮换横幅广告

<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>轮换横幅广告</TITLE>

<SCRIPT language="JavaScript">
                var NowFrame = 1;
				var MaxFrame = 3;
				function show() {
					for(var i=1;i<(MaxFrame+1);i++){
					if(i==NowFrame)
					document.getElementById('div'+NowFrame).style.display ='';    //当前图片显示
					else
					document.getElementById('div'+i).style.display ='none';   //其他的图片隐藏
					}
			       { if(NowFrame == MaxFrame)  //定义下一张显示的图片
					NowFrame = 1;
				   else
					NowFrame++;}
					 theTimer=setTimeout('show()', 3000);  //设置定时器,显示下一张显示的图片
				}
				
</SCRIPT>
</HEAD>

<BODY onLoad="show();">
<DIV style="position:absolute;left:200px;top:60px;">
<IMG src="image/1.jpg" style="display:none;" >
<IMG src="image/2.gif" style="display:none;" >
<IMG src="image/ad-02.jpg" style="display:none;" >
</DIV>



</BODY>
</HTML>

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2022-01-18
  • 2022-02-18
  • 2021-08-23
  • 2021-07-12
  • 2021-11-25
  • 2021-09-20
猜你喜欢
  • 2022-02-25
  • 2021-06-19
  • 2022-12-23
  • 2021-06-23
  • 2021-11-24
  • 2022-12-23
相关资源
相似解决方案