精彩专题推荐:建站之入门课 建站之必修课 建站之关键课 网站价值所在 流量提高专题 css+div 标准 个人网站打造全过程
返回建站学首页
导航:
建站首页 | 网站设计 | 网站开发 | 网站运营 | 网页软件 | 建站指南 | 搜索优化 | 图像处理 | 视频教程 | 书籍教程 | 建站专题
当前位置:首页>网站设计>网页特效>正文

图片转换效果代码


来源:中国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;");  
9 7 3 1 2 3 4 8 :

  把此文章收藏到:          
广而告之
文章搜索
  • Google JZxue.Com

关于我们 | 联系我们 | 友情链接 | 网站地图
Copyright © 2005 - 2006 建站学 All rights reserved.