如何使用JS实现图片切换的特殊效果呢?
如何使用JS实现图片切换的特殊效果呢?
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。
答:用搜狗浏览器最新版!!上面有这个功能!!!详情>>
答:详情>>
答:dir type md rd fdisk int21h 这个好像旧书摊上都有,1元一本详情>>