var imgUrl=new Array();
var imgLink=new Array();
var adNum=0;
imgUrl[1]="http://1.jpg";
imgLink[1]="http://www.forasp.cn";
imgUrl[2]="http://3.jpg";
imgLink[2]="http://www.forasp.cn";
imgUrl[3]="http://3.jpg";
imgLink[3]="http://www.forasp.cn";
imgUrl[4]="http://4.jpg";
imgLink[4]="http://www.forasp.cn";
var imgPre=new Array();
for (i=1;i<4;i++){
imgPre=new Image();
imgPre[i].src=imgUrl[i];
}
function setTransition(){
if (document.all){
imgUrlrotator.filters.revealTrans.Transition=Math.floor(Math.random()*20);
imgUrlrotator.filters.revealTrans.apply();
}
}
function playTransition(){
if (document.all)
imgUrlrotator.filters.revealTrans.play()
}
function nextAd(){
if(adNum else adNum=1; setTransition(); document.images.imgUrlrotator.src=imgUrl[adNum]; playTransition(); theTimer=setTimeout("nextAd()", 6000); } function jump2url(){ jumpUrl=imgLink[adNum]; jumpTarget='_blank'; if (jumpUrl != ''){ if (jumpTarget != '')window.open(jumpUrl,jumpTarget); else location.href=jumpUrl; } } function displayStatusMsg() { status=imgLink[adNum]; document.returnValue = true; } 更多信息请查看IT技术专栏