中文(繁体)
<!-- 將以下程式碼加入 <body>區域內 --> <SCRIPT LANGUAGE="JavaScript"> <!-- JavaScript 開頭 - // 來自 http://www.downcodes.com 的更多 javascript //您的圖像的URL。增加任意數量的圖片 var imgsname = new Array() imgsname[0]="/img/200406301.jpg" imgsname[1]="/img/200406302.jpg" imgsname[2]="/img/200406303 .jpg " // 圖片的連結var imgsurl = new Array() imgsurl[0]="http://www.downcodes.com" imgsurl[1]="http://www.downcodes.com" imgsurl[2]= "http://www.downcodes.com" // 連結的目標。可接受的值: '_blank'、'_self'、'_top' // '_parent' 或視窗名稱 var linktarget="_blank" // 每個影像的靜止狀態(秒) varpause=3 // 影像的水平位置Slideshow (到瀏覽器視窗左邊距的距離,像素) var posleft=5 // 幻燈片的垂直位置(到瀏覽器視窗上邊距的距離,像素) var postop=5 // 不編輯程式碼如下var contentimage=" " var i_image=0 var i_stepwave=0 var i_maxstepwave=40 var imgpreload=new Array() for (i=0;i<=imgsname.length-1;i++) { imgpreload[i]=new Image() imgpreload[i ].src=imgsname[i] } 暫停=暫停*1000 函數啟動() { contentimage="<a href='"+imgsurl[i_image]+"' target='"+linktarget+"' ><img src=' "+imgsname[i_image]+"' border='0'></a>" if (document.all) { waveimage.innerHTML=contentimage waveimage.style.posLeft=posleft waveimage.style.posTop =postomplifywave() }Left=posleft waveimage.style.posTop =postomplifywave() }Left=pos (document.layers) { document.waveimage.left=posleft document.waveimage.top=postopchangeimage() } } function擴大波() { if (i_stepwave<=i_maxstepwave) { waveimage.filters.wave. .wave.strength=i_stepwave waveimage.filters.wave.lightstrength=i_stepwave waveimage.filters.wave.freq=i_stepwave i_stepwave++ var timeout=setTimeout("enlargewave()",50) }eloutelout(alTimeout("enlargewave()",50) }eloutels(Soutimage} 時) }函數reducewave(){如果(i_stepwave> 0){waveimage.filters.wave.phase = i_stepwave waveimage.filters.wave.strength = i_stepwave waveimage.filters.wave.lightstrength = i_favewavewave pave iaveimage。 -- vartimer=setTimeout("reducewave()",50) } else {clearTimeout(timer) vartimer=setTimeout("enlargewave()",pause) } } function changeimage() { i_image++ if (i_image>=imgsname.length) {i_image=0} contentimage="<a href='"+imgsurl[i_image]+"' target='"+linktarget+"'><img src='"+imgsname[i_image] +"' border='0' ></a>" if (document.all) { waveimage.innerHTML=contentimage reducewave() } if (document.layers) { document.waveimage.document.write(contentimage) document.waveimage .document.document.write(contentimage) document.waveimage .document.document() var time =setTimeout("changeimage()",pause) } } if (document.all) { document.write('<DIV ID="waveimage" style="position:absolute; filter:wave();"> </DIV>') } if (document.layers) { document.write('<LAYER NAME="waveimage"></LAYER>') document.close() } window.onload =啟動// - JavaScript 結束- --> </SCRIPT>