한국어
<!-- bbs http://www.downcodes.com/bbs--> <!-- 把下列代码加到<body>区域内 --> <SCRIPT> // http://www의 추가 자바스크립트. downcodes.com // 슬라이드의 URL var Slideurl=new Array("/img/200406301.jpg","/img/200406302.jpg","/img/200406303.jpg","/img/200406304.jpg") // 슬라이드 아래에 표시되는 주석 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 Slidetarget=new Array("_blank","_blank","_blank","_blank") // 슬라이드쇼의 너비(픽셀) var scrollerwidth=160 // 슬라이드쇼의 높이(픽셀) var scrollerheight=100 // 투명 영역의 너비(픽셀) var translayerszone=40 // 댓글의 글꼴 속성 var Slidefont="Arial" var Slidefontcolor=" blue" var Slidefontsize="2" // 웹페이지의 배경색 var pagebgcolor="#FFFFFF" // 이 줄 아래에서는 편집하지 마세요. var translayerswidth=1 var translayersmax=Math.floor(translayerszone/translayerswidth) var translayersleftpos=0 var translayersopacity=100 var translayersfactor=100/translayersmax var translayerswidthall=translayersmax*translayerswidth var allpicturewidth var distancepictopic=0 var scrollerleft=0 var scrollertop=0 var stop=20 var step=2 var newstep=step var 클립왼쪽,clipright,cliptop,clipbottom var i_picture=0 var 타이머 var picturecontent="" var ns4=document.layers?1:0 var ns6=document.getElementById&&!document.all?1:0 var ie=document.all?1:0 var browserinfos=navigator.userAgent var Opera=browserinfos.match(/Opera/) var preloadedimages=new Array() 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+scrollerwidthclipleft=0 clipright=0cliptop=0clipbottom=스크롤러 높이 document.all.picturediv.style.clip ="Rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" document.all.picturediv.style.visibility= "visible" scrollpicture() } if (ns6) { allpicturewidth=document.getElementById('emptypicturediv').offsetWidth document.getElementById('picturediv').style.top=scrollertop document.getElementById('picturediv').style.left =scrollerleft+scrollerwidthclipleft=0clipright=0cliptop=0clipbottom=scrollerheight document.getElementById('picturediv').style.clip ="ret("+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 문서 .roof.document.picturediv.left=scrollerleft+scrollerwidth document.roof.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.visibility="visible" scrollpicture() } } function scrollpicture() { if (ie) { if (document.all.picturediv. style.posLeft>=scrollerleft-allpicturewidth) { document.all.picturediv.style.posLeft-=stepclipright+=step if (clipright>scrollerwidth) {clipleft+=step } document.all.picturediv.style.clip ="direct(" +cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" var 타이머=setTimeout("scrollpicture()",pause) } else { 재설정 위치() } } 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+=step } document.getElementById('picturediv').style.clip ="ret("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" var 타이머=setTimeout( "scrollpicture()",pause) } else { 재설정 위치() } } if (ns4) { if (document.roof.document.picturediv.left>=scrollerleft-allpicturewidth) { document.roof.document.picturediv.left-= 단계 document.roof.document.picturediv.clip.right+=step if (document.roof.document.picturediv.clip.right>scrollerwidth) { document.roof.document.picturediv.clip.left+=step } var 타이머=setTimeout( "scrollpicture()",pause) } else { 재설정 위치() } } } 함수 onmsover() { step=0 } 함수 onmsout() { step=newstep } 함수 재설정 위치() { if (ie) { document.all.picturediv .style.posLeft=scrollerleft+scrollerwidthclipleft=0clipright=0 document.all.picturediv.style.clip ="ret("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" scrollpicture() } if (ns6) { allpicturewidth=document.getElementById('emptypicturediv').offsetWidth document.getElementById('picturediv').style.left=scrollerleft+scrollerwidth clipsleft=0 클립오른쪽=0 document.getElementById('picturediv').style.clip ="direct("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" scrollpicture() } if (ns4) { document.roof.document.picturediv.left=scrollerleft+scrollerwidth document.roof.document. picturediv.clip.left=0 document.roof.document.picturediv.clip.right=0 scrollpicture() } } picturecontent="" picturecontent+="<table cellpadding=2 cellpacing=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+="<fontface=""+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;height:'+scrollerheight+'px; background-color:'+pagebgcolor+';filter:alpha(opacity='+translayersopacity+');overflow:hidden"> </span>') translayersleftpos+=translayerswidth translayersopacity- =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+';filter:alpha(opacity='+translayersopacity+');overflow:hidden"> < /span>') translayersleftpos+=translayerswidth translayersopacity+=translayersfactor } } if (ns6 && !opera) { for (i=0;i<=translayersmax-1;i++) { document.write('<span ID="transleft'+ i+'" style="position:absolute;top:0px;left:'+translayersleftpos+'px;width:'+translayerswidth+'px;height:'+scrollerheight+'px; background-color:'+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;height:'+scrollerheight+'px; background-color:'+pagebgcolor+';-moz-opacity:'+translayersopacity/100+';"> </span>') translayersleftpos+=translayerswidth translayersopacity+= translayersfactor } } 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+' visible=hide>'+picturecontent+'</layer>') document.write('</ilayer>' ) window.onload=init } </script>