谁能告诉我是怎么做的呀!!!!谢谢!!!以下是他的代码:
<body><TABLE cellSpacing=0 cellPadding=0 width="37%" border=0>
<TBODY>
<TR>
</TR>
<TR align=middle bgColor=#fff0fc>
<TD colSpan=3>
<SCRIPT language=javascript>
var imgUrl=new Array();
var imgLink=new Array();
var adNum=0;
var jumpUrl="http://ent.tom.com/1306/1362/20061011-221922.html";
//第1幅图
imgUrl[1]="/images/bai/luntan/300210.jpg";
imgLink[1]="/1306/1362/20061011-222160.html";
//第2幅图
imgUrl[2]="/images/maodou/061011/shoutu1.jpg";
imgLink[2]="/1306/1362/20061011-221935.html";
//第3幅图
imgUrl[3]="/images/pics/lujiyan/hero-movieshoutu01.jpg";
imgLink[3]="http://ent.tom.com/hero2006/movie/index.html";
//第4幅图
imgUrl[4]="http://music.ent.tom.com/images/newshoo/wlbxunyan2006/wlbxunyan06.jpg";
imgLink[4]="http://l.tom.com/c/a8/xunyan/t02/a8/?http://music.ent.tom.com/06a8/index.html ";
var imgPre=new Array();
var pj=0;
for (pi=1;pi<=imgUrl.length-1;pi++) {
if( (imgUrl[pi]!=""
&& (imgLink[pi]!=""
) {
pj++;
} else {
break;
}
}
function playTran(){
if (document.all)
imgInit.filters.revealTrans.play();
}
var key=0;
function nextAd(){
if(adNum<pj)adNum++ ;
else adNum=1;
if( key==0 ){
key=1;
} else if (document.all){
imgInit.filters.revealTrans.Transition=23;
imgInit.filters.revealTrans.apply();
playTran();
}
document.images.imgInit.src=imgUrl[adNum];
theTimer=setTimeout("nextAd()", 5000);
}
function goUrl(){
jumpUrl=imgLink[adNum];
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else
location.href=jumpUrl;
}
}
</SCRIPT>
<A href="javascript:goUrl()"><IMG
style="BORDER-RIGHT: #f6b4ec 1px solid; BORDER-TOP: #f6b4ec 1px solid; FILTER: revealTrans(duration=2,transition=6); BORDER-LEFT: #f6b4ec 1px solid; BORDER-BOTTOM: #f6b4ec 1px solid"
height=210 src="" width=300 border=0 name=imgInit></A> </TD></TR>
<TR>
<TD colSpan=3> </TD>
</TR></TBODY></TABLE>