图片转换效果代码
来源:中国COM万网 时间:06-10-28 点击: 点击这里收藏本文
document.writeln(" for (i=1;i < PICSLIDEIMG4315STR.length;i++){");
document.writeln(" preloadedimages[i]=new Image();");
document.writeln(" preloadedimages[i].src=PICSLIDEIMG4315STR[i];");
document.writeln(" }");
document.writeln(" }");
document.writeln("function setTransition4315STR(){");
document.writeln(" if (document.all){");
document.writeln(" PICSLIDEIMGNAME4315STR.filters.revealTrans.Transition=Math.floor(Math.random()*23);");
document.writeln(" PICSLIDEIMGNAME4315STR.filters.revealTrans.apply();");
document.writeln(" }");
document.writeln("}");
document.writeln("");
document.writeln("function playTransition4315STR(){");
document.writeln(" if (document.all)");
document.writeln(" PICSLIDEIMGNAME4315STR.filters.revealTrans.play()");
document.writeln("}");
document.writeln("");
document.writeln("function nextIMG4315STR(){");
document.writeln(" imgsrcarray4315STR()");
document.writeln(" if(adNum4315STR < PICSLIDEIMG4315STR.length-1)adNum4315STR++ ;");
document.writeln(" else adNum4315STR=0;");
document.writeln(" setTransition4315STR();");
document.writeln(" document.images.PICSLIDEIMGNAME4315STR.src=PICSLIDEIMG4315STR[adNum4315STR];");
document.writeln(" document.images.PICSLIDEIMGNAME4315STR.alt=imgalt4315STR[adNum4315STR];");
document.writeln("");
document.writeln(" playTransition4315STR();");
document.writeln(" theTimer=setTimeout(\"nextIMG4315STR()\", cycle4315STR);");
document.writeln("}");
document.writeln("");
document.writeln("function jump2url4315STR(){");
document.writeln(" jumpUrl=PICSLIDEIMGlink4315STR[adNum4315STR];");
document.writeln(" jumpTarget=\’_blank\’;");
document.writeln(" if (jumpUrl != \’\’){");
document.writeln(" if (jumpTarget != \’\’)window.open(jumpUrl,jumpTarget);");
document.writeln(" else location.href=jumpUrl;");
把此文章收藏到: