js变换图盘
2016-06-22来源:

<script language=javascript>

var imgurl=new array();

var imglink=new array();

var adnum=0;

imgurl[1]=;

imglink[1]=;

imgurl[2]=;

imglink[2]=;

imgurl[3]=;

imglink[3]=;

imgurl[4]=;

imglink[4]=;

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>

2025公考·省考培训课程试听预约报名

  • 报班类型
  • 姓名
  • 手机号
  • 验证码
推荐信息
Baidu
map