求一段广告代码.帮修改代码. http://blog.csdn.net/applebbs/archive/2005/07/17/427066.aspx 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script language=JavaScript>var imgUrl=new Array();var imgLink=new Array();var adNum=0;imgLink[0]="http://music.lzr.com.cn/bbs";imgUrl[0]="http://music.lzr.com.cn/bbs/UploadFile/2005-7/2005721248396526.gif";imgLink[1]="http://images.sohu.com/cs/sms/alumni3/minisite/6years/index.html";imgUrl[1]="http://photocdn.sohu.com/20050706/Img226206155.gif";imgLink[2]="http://club.chinaren.com/bbs/index.jsp?boardid=11&hotmsgid=9131684";imgUrl[2]="http://photocdn.sohu.com/20050713/Img226293317.gif";imgLink[3]="http://club.chinaren.com/bbs/index.jsp?boardid=16&hotmsgid=9580645";imgUrl[3]="http://photocdn.sohu.com/20050715/Img226320025.jpg";function playTran(){ if (document.all) imgInit.filters.revealTrans.play();}function nextAd(){ if(adNum<imgUrl.length-1) adNum++; else adNum=0; if (document.all){ imgInit.filters.revealTrans.Transition=6; imgInit.filters.revealTrans.apply(); playTran(); } document.images.imgInit.src=imgUrl[adNum]; theTimer=setTimeout("nextAd()", 6000);}function goUrl(){ jumpUrl=imgLink[adNum]; jumpTarget='_blank'; if (jumpUrl != ''){ if (jumpTarget != '') window.open(jumpUrl,jumpTarget); else location.href=jumpUrl; }}</script><span class="img1"><img src="javascript:nextAd()" name=imgInit onclick="goUrl()" width=120 height=160 vspace="1" border=0 style="FILTER: revealTrans(duration=2,transition=20);cursor:hand"></span></A> 感谢:AppleBBS(Dicky) 你修改的最后一段,可以详细解释一下吗?我把100分给你,我试了,效果不错。谢谢。 你原来的那个是固定的超连接到同一个网址的用了下面这个<img>里加2了onclick事件,每次切换图片的时候指向该图片对应的网址~<span class="img1"><img src="javascript:nextAd()" name=imgInit onclick="goUrl()" width=120 height=160 vspace="1" border=0 style="FILTER: revealTrans(duration=2,transition=20);cursor:hand"></span></A> 紧急求救!SOS 在线求助:为什么一个函数两次运行运行document.write出错,write参数中有form1内容。 前段时间的csdn上面flash视频讲座跑哪去了。 如何实现在一个页面中得到另一个页面中INPUT TEXT里的值,并判断这个值是否为我需要的值 请教字符串的长度 如何取得图上某一点的坐标? html里面,如何向flash传参数 登陆A页面后,进B页面,点“退出系统”,怎么刷新A? 不用提交的方式,能把客户端的数据传到服务器端吗? JS JavaScript 出现乱码 寻找节点问题,在线等
var imgUrl=new Array();
var imgLink=new Array();
var adNum=0;imgLink[0]="http://music.lzr.com.cn/bbs";
imgUrl[0]="http://music.lzr.com.cn/bbs/UploadFile/2005-7/2005721248396526.gif";
imgLink[1]="http://images.sohu.com/cs/sms/alumni3/minisite/6years/index.html";
imgUrl[1]="http://photocdn.sohu.com/20050706/Img226206155.gif";
imgLink[2]="http://club.chinaren.com/bbs/index.jsp?boardid=11&hotmsgid=9131684";
imgUrl[2]="http://photocdn.sohu.com/20050713/Img226293317.gif";
imgLink[3]="http://club.chinaren.com/bbs/index.jsp?boardid=16&hotmsgid=9580645";
imgUrl[3]="http://photocdn.sohu.com/20050715/Img226320025.jpg";function playTran(){
if (document.all) imgInit.filters.revealTrans.play();
}function nextAd(){
if(adNum<imgUrl.length-1) adNum++;
else adNum=0;
if (document.all){
imgInit.filters.revealTrans.Transition=6;
imgInit.filters.revealTrans.apply();
playTran();
}
document.images.imgInit.src=imgUrl[adNum];
theTimer=setTimeout("nextAd()", 6000);
}function goUrl(){
jumpUrl=imgLink[adNum];
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else
location.href=jumpUrl;
}
}
</script>
<span class="img1"><img src="javascript:nextAd()" name=imgInit onclick="goUrl()" width=120 height=160 vspace="1" border=0 style="FILTER: revealTrans(duration=2,transition=20);cursor:hand"></span></A>
用了下面这个<img>里加2了onclick事件,每次切换图片的时候指向该图片对应的网址~<span class="img1"><img src="javascript:nextAd()" name=imgInit onclick="goUrl()" width=120 height=160 vspace="1" border=0 style="FILTER: revealTrans(duration=2,transition=20);cursor:hand"></span></A>