Ad the following code between head:
<code>
<script language=JavaScript>
<!–
var pic_ar=new Array();
var pic_arlink=new Array();
var adNum=0;
pic_ar[0]=”img/ad1.jpg”;
pic_ar[1]=”img/ad2.jpg”;
pic_ar[2]=”img/ad3.jpg”;
pic_ar[3]=”img/ad4.jpg”;
pic_ar[4]=”img/ad5.jpg”;
pic_ar[5]=”img/ad6.jpg”;
pic_ar[6]=”img/ad7.jpg”;
pic_ar[7]=”img/ad8.jpg”;
pic_ar[8]=”img/ad9.jpg”;
pic_ar[9]=”img/ad10.jpg”;
pic_ar[10]=”img/ad11.jpg”;
pic_ar[11]=”img/ad12.jpg”;
var preloadedimages=new Array();
for (i=1;i<pic_ar.length;i++){
preloadedimages[i]=new Image();
preloadedimages[i].src=pic_ar[i];
}
function setTransition(){
if (document.all){
pic_arrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
pic_arrotator.filters.revealTrans.apply();
}
}
function playTransition(){
if (document.all)
pic_arrotator.filters.revealTrans.play()
}
function nextAd(){
if(adNum<pic_ar.length-1)adNum++ ;
else adNum=0;
setTransition();
document.images.pic_arrotator.src=pic_ar[adNum];
playTransition();
theTimer=setTimeout(“nextAd()”, 5000);
}
function displayStatusMsg() {
status=pic_arlink[adNum];
document.returnValue = true;
}
//–>
</script>
</–more–>
</code>
add the following code in the body:
<code>
<p style=”text-align:center;text-indent:0″><IMG style=”FILTER: revealTrans(duration=2,transition=20);border:1px solid #ccc” height=320 src=”img/ad1.jpg” width=”240″ border=”1″ name=”pic_arrotator”></p>
<script language=JavaScript>nextAd()</script>
</code>
That’s all.