在此小弟跪求高手们的援助,会的哥们儿给共亨源代码吧。
要是可以的话能不能给写得具体点?
<script language=JavaScript>
<!--
var bannerAD=new Array();
var bannerADlink=new Array();
var adNum=0;
for(i=0;i<22;i++){
bannerAD[i]="http://bbs.bc-cn.net/bbs/Images/userface/image"+(i+1)+".gif";
bannerADlink[i]="";
}
var preloadedimages=new Array();
for (i=1;i<4;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()", 4000);
}
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>
<a onMouseOver="displayStatusMsg();return document.returnValue"
href="javascript:jump2url()"><img
src="javascript:nextAd()"
name=bannerADrotator width=90 border=0 class="unnamed1"
style="FILTER: revealTrans(duration=2,transition=20)"></a>