看一下原代码就知道了
<!-- 动态图开始 -->
[CODE] <script language=JavaScript>
var imgUrl2=new Array();
var imgLink2=new Array();
var adNum2=0;
imgUrl2[1]="http://image2.sina.com.cn/ent/part/141/2004/1228/U487P28T141D6F2837DT20060427114119.gif";
imgLink2[1]="http://ent.sina.com.cn/m/f/wdge/index.html";
imgUrl2[2]="http://image2.sina.com.cn/ent/part/141/2004/1228/U487P28T141D6F2838DT20060424192410.jpg";
imgLink2[2]="http://ent.sina.com.cn/f/m/daisy/index.shtml";
imgUrl2[3]="http://image2.sina.com.cn/ent/part/141/2004/1228/U105P28T141D6F2839DT20060428121441.jpg";
imgLink2[3]="http://ent.sina.com.cn/f/m/xuezdd/index.shtml";
var imgPre2=new Array();
var k=0;
for (m=1;m<=3;m++) {
if( (imgUrl2[m]!="") && (imgLink2[m]!="") ) {
k++;
} else {
break;
}
}
function playTran2(){
if (document.all)
imgInit2.filters.revealTrans.play();
}
var key2=0;
function nextAd2(){
if(adNum2<k)adNum2++ ;
else adNum2=1;
if( key2==0 ){
key2=1;
} else if (document.all){
imgInit2.filters.revealTrans.Transition=6;
imgInit2.filters.revealTrans.apply();
playTran2();
}
document.images.imgInit2.src=imgUrl2[adNum2];
theTimer=setTimeout("nextAd2()", 6000);
}
function goUrl2(){
jumpUrl2=imgLink2[adNum2];
jumpTarget2='_blank';
if (jumpUrl2 != ''){
if (jumpTarget2 != '')
window.open(jumpUrl2,jumpTarget2);
else
location.href=jumpUrl2;
}
}
</script>
<a href="javascript:goUrl2()"><img style="FILTER: revealTrans(duration=2,transition=20);border-color:#000000;color:#000000" src="javascript:nextAd2()" width=131 height=60 border=1 class=img01 name=imgInit2></a><!-- 动态图结束 -->[/CODE]
[此贴子已经被作者于2006-5-7 22:56:00编辑过]