栏目搜索
 
 
 
 
你的位置:首页 > JavaScript > 轮番显示广告的代码 >
 

轮番显示广告的代码

发布者:[本站编辑] | 来源:[]

轮番显示广告的代码_电脑维修资料库


保存为js,调用


var dt = new date();
var hr = dt.getseconds();
hr=hr%7;
 if (hr==0){ document.write(<a href=../../../../vip/index.htm target='_blank'><img alt='注册vip会员,享受星级服务' border=0 width=120 height=300 src=../../../../../../js/images/vip01.gif></a>); }
 if (hr==1){ document.write(<a href=../../../../vip/index.htm target='_blank'><img alt='注册vip会员,享受星级服务' border=0 width=120 height=300 src=../../../../../../js/images/vip02.gif></a>); }
 if (hr==2){ document.write(<a href=../../../../vip/index.htm target='_blank'><img alt='注册vip会员,享受星级服务' border=0 width=120 height=300 src=../../../../../../js/images/vip02.gif></a>); }
 if (hr==3){ document.write(<a href=../../../../vip/index.htm target='_blank'><img alt='注册vip会员,享受星级服务' border=0 width=120 height=300 src=../../../../../../js/images/vip03.gif></a>); }
 if (hr==4){ document.write(<a href=../../../../vip/index.htm target='_blank'><img alt='注册vip会员,享受星级服务' border=0 width=120 height=300 src=../../../../../../js/images/vip03.gif></a>); }
 if (hr==5){ document.write(<a href=http://www.yestar2000.com target='_blank'><img alt='www.yestar2000.com' border=0 src=../../../../../../js/images/logo.gif></a>); }
 if (hr==6){ document.write(<a href=http://www.yestar2000.com target='_blank'><img alt='www.yestar2000.com' border=0 src=../../../../../../js/images/logo.gif></a>); }
</t

 
返回列表 返回JavaScript