爱问知识人 爱问教育 医院库

如何使用JS实现图片切换的特殊效果呢?

首页

如何使用JS实现图片切换的特殊效果呢?

如何使用JS实现图片切换的特殊效果呢?

提交回答

全部答案

    2018-10-28 00:11:50
  •   html xmlns=http://www。w3。org/1999/xhtml head title无标题页-学无忧(www。xue51。com)/titlescript language=javascriptvar imgUrl=new Array();var imgLink=new Array();var adNum=0;var jumpUrl=http://pic。
      music。tom。com/view/35611/tid-35611-pid-1。html;imgLink[1]=http://pic。music。tom。com/view/35611;imgLink[2]=http://pic。music。
      tom。com;imgUrl[1]=http://cimg。163。com/tech/2006/1/18/2006011810122068706。jpg;imgUrl[2]=http://cimg。163。com/tech/2006/1/17/200601171002503f251。
      jpg;var imgPre=new Array();var j=0;for (i=1;i=imgUrl。length-1;i++) {if(imgLink[i]!=) {j++;} else {break;}}function playTran(){if (document。
      all)imgInit。filters。revealTrans。play();}var key=0;//循环显示图片function nextAd(){if(adNumj)adNum++ ;else adNum=1;if( key==0 ){key=1;} else if (document。
      all){imgInit。filters。revealTrans。Transition=6;imgInit。filters。revealTrans。apply();playTran();}document。images。imgInit。src=imgUrl[adNum];jumpUrl=imgLink[adNum];theTimer=setTimeout(nextAd(), 7000);}//单击图片时实现导航function goUrl(){if (jumpUrl != ''){if (jumpTarget != '') window。
      open(jumpUrl,'_blank');else location。
      href=jumpUrl;}}/script需要在body中添加一个链接,代码如下所示:/headbodya href=javascript:goUrl()img style=FILTER:revealTrans(duration=2,transition=7);border:1 solid black src=javascript:nextAd() width=300 border=0 name=imgInit height=210/a/body/html。

    冒***

    2018-10-28 00:11:50

类似问题

换一换
  • 操作系统/系统故障 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...
最新资料 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):