<div id="contentbody">
<div class="contentleft">
<!-- start image-section -->
<div id="image-section">
<script language="javascript" type="text/javascript">
<!--
var bannerAD=new Array();
var bannerADlink=new Array();
var adNum=0;
bannerADlink[0]="http://info.china.alibaba.com/news/subject/v8-s5016113.html";
bannerAD[0]="http://img.china.alibaba.com/news/upload/8/261*160/261X160_1141028721975.jpg";
bannerADlink[1]="http://info.china.alibaba.com/news/community/c1.html";
bannerAD[1]="http://img.china.alibaba.com/news/upload/2006fuzhuang/2/27/Untitled-6_1141007983236.jpg";
bannerADlink[2]="http://info.china.alibaba.com/news/detail/v5000060-d5646087.html";
bannerAD[2]="http://img.china.alibaba.com/news/upload/5000060/news/2006/27/a02_1141018869811.jpg";
var preloadedimages=new Array();
for (i=1;i<3;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()", 6000);
}
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>
请问上面的代码是什么意思,请帮我加上注实行吗?谢过。
如果换成动态的图片跟连接要怎么去做??