中文(繁体)
<!-- bbs http://www.downcodes.com/bbs--> <!-- 將以下程式碼加入<body>區域內--> <SCRIPT> // 來自http://www 的更多javascript。 ") // 投影片下方顯示的註解var Slidecomment=new Array("Mary","Jane","Rita","Tina") // 每張投影片的連結var Slidelink=new Array("http:/ /www.downcodes. com","http://www.downcodes.com","http://www.downcodes.com","http://www.downcodes.com") // 連結的目標。允許的值: "_parent", "_top", "_blank", "_self" var sliptarget=new Array("_blank","_blank","_blank","_blank") // 投影片的寬度(像素) varscrollerwidth=160 // 投影片的高度(像素) varscrollerheight=100 // 透明區域的寬度(像素) vartranslayerszone=40 // 註解的字型屬性varslidefont="Arial" varslidefontcolor=" blue" var slipfontsize="2" / / 網頁背景顏色var pagebgcolor="#FFFFFF" // 不要在該行下面編輯var translayerswidth=1 var translayersmax=Math.floor(translayerszone/translayerswidth) var translayersleftpos=0 var translayersopacity=100 translay translayers/30 =translayersmax*translayerswidth var allpicturewidth var distancepictopic=0 varscrollerleft=0 varscrollertop=0 varpause=20 varstep=2 varnewstep=step varclipleft,clipright,cliptop,clipbottom varnewstep=step varclipleft,clipright,cliptop,clipbottomas i_lay_r. ?1:0 var ns6=document.getElementById&&!document.all?1:0 var ie=document.all?1:0 var browserinfos=navigator.userAgent var opera=browgesinfos.match(/Opera/) var preloadedima () for (i=0;i<slideurl.length;i++){ preloadedimages[i]=new Image() preloadedimages[i].src=slideurl [i] } function init() { if (ie) { allpicturewidth= document.all.picturediv.offsetWidth document.all.picturediv.style.posTop=scrollertop document.all.picturediv.style.posLeft=scrollerleft+scrollerwidth Clipleft=0 ClipRight=0 ClipTop=0 ClipBotmo. .clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" document.all.picturediv.style.visibility= “可見”scrollpicture() } if (ns6) { allpicturewidth=document. getElementById('emptypicturediv').offsetWidth document.getElementById('picturediv').style.top=scrollertop document.getElementById('picturediv').style.left =scrollerleft+scrollerwidth Clip document.getElementById('picturediv').style.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" document.getElementById('picturediv').style.visibility="visible" scrollpicture() } if (ns4) { allpicturewidth=document.roof.document.picturediv.document.width document.roof.document.picturediv.top=scrollertop 文件。 document.picturediv.clip.left=0 document.roof.document.picturediv.clip.right=0 document.roof.document.picturediv.clip.top= 0 document.roof.document.picturediv.clip.bottom=scrollerheight document.roof.document.picturediv.clip.bottom=scrollerheight document. roof.document.picturediv.visibility=“visible”scrollpicture() } } 函數scrollpicture() { if (ie) { if (document.all.picturediv. style.posLeft>=scrollerleft-allpicturewidth) { document.all.picturedivture.all.all. style.posLeft-=step Clipright+=step if (clipright>scrollerwidth) { Clipleft+=step } document.all.picturediv.style.clip ="rect(" +cliptop+" "+clipright+" "+clipbottom+" "+clipleft+") " var timeout=setTimeout("scrollpicture()",pause) } else { resetposition() } } if (ns6) { if (parseInt(document.getElementById) ('picturediv').style.left)>=scrollerleft-allpicturewidth ) { document.getElementById('picturediv').style.left=parseInt(document.getElementById('picturediv').style.left)-step Clipright+=step if (clipright>scrollerwidth) { Clipleft+=stepget docum. 'picturediv').style.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" var timeout=setTimeout( "scrollpicture()",pause) } else { resetposition() } } if (ns4) { if (document.roof.document.picturediv.left>=scrollerleft-allpicturewidth) { document.roof.document.picturediv.left-=步驟document.roof.document.picturediv.clip.right+=p if (document.roof.document.picturediv.clip.right>scrollerwidth) { document.roof.document.picturediv.clip.left+=step } var timeout=setTimeout( "scrollpicture()",pause) } else { resetposition() } } } function onmsover() { step=0 } function onmsout() { step=newstep } function resetposition() { if (ie) { document.all.picturediv .style.posLeft=scrollerleft+scrollerwidth Clip.picture0 Clip.posLeft=scrollerleft+scrollerwidth Cliplipft. .all.picturediv.style.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"scrollpicture() } if (ns6) { allpicturewidth=document.getElementById('emptypicturediv'). offsetWidth document.getElementById('picturediv').style.left=scrollerleft+scrollerwidth " "+clipleft+")"scrollpicture() } if (ns4) { document.roof.document.picturediv.left=scrollerleft+scrollerwidth document.roof.document. picturediv.clip.left=0 document.picture.document.picture. clip.right=0scrollpicture() } } picturecontent="" picturecontent+="<table cellpadding=2 cellspacing=0>" picturecontent+="<tr>" for (i=0;i<=slideurl.length-1;i++) { picturecontent+="<td>" picturecontent+="<a href=""+slidelink[i]+"" target=""+slidetarget [i]+"" onMouseOver="javascript:onmsover() " onMouseOut="javascript:onmsout()">" picturecontent+="<img src=""+slideurl[i]+"" border=0></a>" picturecontent+="</td> " } picturecontent+="</tr>" picturecontent+="<tr>" for (i=0;i<=slideurl.length-1;i++) { picturecontent+="<td>" picturecontent+="<字體=" "+slidefont+"" color=""+slidefontcolor+"" size="+slidefontsize+">" picturecontent+=slidecomment[i] picturecontent+=" </font>" picturecontent+="</td>" } picturecontent+=" </tr>" picturecontent+="</tr></table>" if (即|| ns6) { document.write('<div style="position:relative;width:'+scrollerwidth+'px;height:'+scrollerheight+'px;overflow:hidden">') document.write('<div id=" picturediv" style="position:absolute;top:0px;left:0px;height:'+scrollerheight+'px;visibility:hidden">'+picturecontent+'</div>') if (ie && !opera) { for ( i=0;i<=translayersmax;i++) { document.write('<span ID="trans'+i+'" style="position:absolute;top:0px;left:'+translayersleftpos+'px;width:' +translayerswidth+'px;高度:'+scrollerheight+'px;背景顏色:'+pagebgcolor+';過濾器:alpha(opacity='+translayersopacity+');溢出:隱藏"> </span>') translayersleftpos+=translayersopacidth-translayersopacidity =translayersfactor } translayersleftpos=scrollerwidth-translayersleftpos for (ii=0;ii<=translayersmax;ii++) { document.write('<span ID="trans'+ii+'" style="position:absolute;top:0px;left :'+translayersleftpos+'px;寬度:'+translayerswidth+'px;高度:'+scrollerheight+'px;背景顏色:'+pagebgcolor+';過濾器:alpha(opacity='+translayersopacity+');溢出:隱藏"> < /span>') translayersleftpos+=translayerswidth translayersopacity+=translayersfactor } } if (ns6 && !opera) { for (i=0;i<=translayersmax-1;i++) { document.write('<span ID="transleft+max-1;i++) { document.write('<span ID="transleft i+'" style="position:absolute;top:0px;left:'+translayersleftpos+'px;寬度:'+translayerswidth+'px;高度:'+scrollerheight+'px;背景顏色:'+pagebgcolor+';-moz- opacity :'+translayersopacity/100+';overflow:hidden"></span>') translayersleftpos+=translayerswidth translayersopacity-=translayersfactor if (translayersopacity<0) {translayersopacity=0.001} } translayersleftpos=scrollerwidth-translayersleftpos translayersopacity=0.001 for ( i =0;i<=translayersmax-1;i++) { document.write('<span ID="transright'+i+'" style="position:absolute;top:0px;left:'+translayersleftpos+'px;width : '+translayerswidth+'px;高度:'+scrollerheight+'px;背景顏色:'+pagebgcolor+';-moz-opacity:'+translayersopacity/100+';"> </span>') translayersleftpos+=translayerswidth translayerswidth translayerswid } document.write('</div>') document.write('<div id="emptypicturediv" style="position:absolute;top:0px;left:0px;height:'+scrollerheight+'px;visibility :hidden ">'+picturecontent+'</div>') window.onload=init } if (ns4) { document.write('<ilayer name="roof" width='+scrollerwidth+' height='+scrollerheight+'> ') document.write('<layer name="picturediv" width='+scrollerwidth+' height='+scrollerheight+'visibility=hide>'+picturecontent+'</layer>') document.write('</ilayer>' ) window .onload=init } </script>