当前位置:首页 > 本站资源 > 详细内容
图片自动切换代码
发布时间:2009/6/3  阅读次数:3256  字体大小: 【】 【】【

<SCRIPT language=javascript src=""></SCRIPT>

<META http-equiv=Content-Language content=zh-cn>
<P></P>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle width=150 colSpan=2>
<SCRIPT language=JavaScript>  
<!-- // BannerAD
var bannerAD=new Array();  
var bannerADlink=new Array();  
var adNum=0;  
bannerAD[0]="http://www.id666.com/user/zk6010/disk/webimg/20081130194754465.jpg";  
bannerAD[1]="http://www.id666.com/user/zk6010/disk/webimg/20081130194437113.jpg";  
bannerAD[2]="http://www.id666.com/user/zk6010/disk/webimg/20081130194528973.jpg";  
bannerAD[3]="http://www.id666.com/user/zk6010/disk/webimg/20081130194658673.jpg";  
bannerAD[4]="http://www.id666.com/user/zk6010/disk/webimg/200812113814283.jpg";  
bannerAD[5]="http://www.id666.com/user/zk6010/disk/webimg/200812113858970.jpg";  
bannerAD[6]="http://www.id666.com/user/zk6010/disk/webimg/200812113925393.jpg";  
bannerAD[7]="http://www.id666.com/user/zk6010/disk/webimg/200812113954139.jpg";  
bannerAD[8]="http://www.id666.com/user/zk6010/disk/webimg/200812392539461.jpg";  
bannerAD[9]="http://www.id666.com/user/zk6010/disk/webimg/200812392547657.jpg";  
bannerAD[10]="http://www.id666.com/user/zk6010/disk/webimg/200812392636821.jpg";  
bannerAD[11]="http://www.id666.com/user/zk6010/disk/webimg/200812311330514.jpg";  
var preloadedimages=new Array();  
for (i=1;i<bannerAD.length;i++){  
preloadedimages[i]=new Image();  
preloadedimages[i].src=bannerAD[i];  
}  
function setTransition(){  
if (document.all){  
bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);  
bannerADrotator.filters.revealTrans.apply();  
}  
}  
function playTransition(){  
if (document.all)  
bannerADrotator.filters.revealTrans.play()  
}  
function nextAd(){  
if(adNum<bannerAD.length-1)adNum++ ;  
else adNum=0;  
setTransition();  
document.images.bannerADrotator.src=bannerAD[adNum];  
playTransition();  
theTimer=setTimeout("nextAd()", 5000);  
}  
function jump2url(){  
jumpUrl=bannerADlink[adNum];  
jumpTarget='_blank';  
if (jumpUrl != ''){  
if (jumpTarget != '')window.open(jumpUrl,jumpTarget);  
else location.href=jumpUrl;  
}  
}  
function displayStatusMsg() {  
status=bannerADlink[adNum];  
document.returnValue = true;  
}  
//-->  
</SCRIPT>

<DIV id=layer1 style="Z-INDEX: 1; LEFT: 15px; WIDTH: 234px; POSITION: absolute; TOP: 10px; HEIGHT: 172px">  </DIV>
<P><A onmouseover="displayStatusMsg();return document.returnValue" href="javascript:jump2url()"><IMG style="FILTER: revealTrans(duration=2,transition=20); WIDTH: 252px; HEIGHT: 173px" height=180 src="http://www.id666.com/user/zk6010/disk/webimg/20081130194658673.jpg" width=1024 border=1 name=bannerADrotator> </A>
<SCRIPT language=JavaScript>nextAd()</SCRIPT>
</P></TD>
<TD align=middle> </TD></A></TR></TBODY></TABLE>
我要评论
  • 匿名发表
  • [添加到收藏夹]
  • 发表评论:(匿名发表无需登录,已登录用户可直接发表。) 登录状态:未登录
最新评论
所有评论[0]
    暂无已审核评论!

 版权信息©2008-2011 All Rights Reserved 
关于本站|我的web2.0|甘肃社科|技术验证
注册许可证:甘公网安备 62010502000826号

CNZZ: