<script language=JavaScript>
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<i>=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<imgUrl.length-1)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;
}
</script>
<a onMouseOver="displayStatusMsg();return document.returnValue"
href="javascript:jump2url()"><img
style="FILTER: revealTrans(duration=2,transition=20);border:1 solid gray;" height=242
src="javascript:nextAd()" width=191
name=imgUrlrotator></a>
更多信息请查看IT技术专栏