普通的JS幻灯片特效(IE Only)

var roll_image = new Array;
var image_link = new Array;
roll_image[0] = '图片地址1';
image_link[0] = '图片链接1‘;
roll_image[1] = '图片地址2';
image_link[1] = '图片链接2‘;
roll_image[2] = '图片地址3';
image_link[2] = '图片链接3‘;
var cliNum = 5;
var interval = 5000;
var setTime = '';
var cliID;
function ck(ad_n){
  for(var ad_i=0;ad_i<=cliNum;ad_i++){
    document.getElementById('ad_'+ad_i).className = 'ad_button';
  }
  document.getElementById('ad_'+ad_n).className = 'ad_button_1';
  document.getElementById('imglink').href=image_link[ad_n];
  document.getElementById('bigimg').src=roll_image[ad_n];
  document.getElementById('bigimg').filters.revealTrans.Transition=Math.floor(Math.random()*23);
  document.getElementById('bigimg').filters.revealTrans.apply();
  document.getElementById('imglink').href=image_link[ad_n];
  document.getElementById('bigimg').src=roll_image[ad_n];
  document.getElementById('bigimg').filters.revealTrans.play()
  clearTimeout(setTime);
  setTime = setTimeout('ro('+ad_n+')',interval);
}
function ro(ad_n){
  if(ad_n>cliNum){ad_n=0}
  if(ad_n<=0){cliID=cliNum}else{cliID = ad_n-1}
  document.getElementById('ad_'+cliID).className = 'ad_button';
  document.getElementById('ad_'+ad_n).className = 'ad_button_1';
  document.getElementById('bigimg').filters.revealTrans.Transition=Math.floor(Math.random()*23);
  document.getElementById('bigimg').filters.revealTrans.apply();
  document.getElementById('imglink').href=image_link[ad_n];
  document.getElementById('bigimg').src=roll_image[ad_n];
  document.getElementById('bigimg').filters.revealTrans.play();
  ad_n = ad_n+1;
  setTime = setTimeout('ro('+ad_n+')',interval);
}
document.write("<TABLE cellSpacing=0 cellPadding=0 border=0>");
document.write("  <TBODY>");
document.write("    <TR><TD><A onfocus=this.blur() id=imglink target=_blank><IMG id=bigimg class=ad_pic style='filter:revealTrans(duration=2,transition=20)'></A></TD></TR>");
document.write("    <TR><TD><div class=ad_button_div><ul><li id=ad_0 onMouseOver=ck(0) class=ad_button_1>1</li><li id=ad_1 onMouseOver=ck(1) class=ad_button>2</li><li id=ad_2 onMouseOver=ck(2) class=ad_button>3</li><li id=ad_3 onMouseOver=ck(3) class=ad_button>4</li><li id=ad_4 onMouseOver=ck(4) class=ad_button>5</li><li id=ad_5 onMouseOver=ck(5) class=ad_button>6</li></ul><div id=clearboth></div></div></TD></TR>");
document.write("  </TBODY>");
document.write("</TABLE>");
ro(0);
 

  →关键词
幻灯片
  →添加评论
标题: 
署名: 
留言内容: 
验证码:  点击可刷新验证码
    0条记录,分0页,当前正在浏览第1页。
    返回文章表列 关闭本页