中文(简体)
<!-- 将以下代码添加到 <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() } if (document.layers) { document.waveimage.left=posleft document.waveimage.top=postopchangeimage() } } function扩大波() { if (i_stepwave<=i_maxstepwave) { waveimage.filters.wave .phase=i_stepwave waveimage.filters.wave.strength=i_stepwave waveimage.filters.wave.lightstrength=i_stepwave waveimage.filters.wave.freq=i_stepwave i_stepwave++ var timeout=setTimeout("enlargewave()",50) } else { clearTimeout(计时器)changeimage()}}函数reducewave(){如果(i_stepwave> 0){waveimage.filters.wave.phase = i_stepwave waveimage.filters.wave.strength = i_stepwave waveimage.filters.wave.lightstrength = i_stepwave waveimage.filters。 wave.freq=i_stepwave i_stepwave-- 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.close() var timeout=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>