한국어
<!-- bbs http://www.downcodes.com/bbs--> <!-- <body> 영역에 다음 코드를 추가합니다--> <table width=360 height=160 cellpadding=0cellspacing=0 border=0><tr><td> <SCRIPT> // http://www.downcodes.com의 추가 자바스크립트 /////////////////////// / ////////////////////////////////// // 이 줄 아래에 슬라이드쇼의 값을 설정합니다. var Slideurl=new Array( ) // 슬라이드(그림)의 URL을 원하는 만큼 추가하세요. Slideurl[0]="/img/200406301.jpg" Slideurl[1]="/img/200406302.jpg" Slideurl[ 2]="/ img/200406303.jpg" var Slidecomment=new Array() // 각 사진에 대한 설명 Slidecomment[0]="사진 설명 1" Slidecomment[1]="사진 설명 2" Slidecomment[2]=" 그림 설명 3" var Slidelink=new Array() // 슬라이드 링크 Slidelink[0]="http://www.downcodes.com" Slidelink[1]="http://www.downcodes.com" Slidelink [2]=" http://www.downcodes.com" // 각 슬라이드 링크의 대상 var Slidetarget=new Array() Slidetarget[0]="_blank" Slidetarget[1]="_top" Slidetarget[2] ="" // 사운드 파일의 URL var Slidesound="http://www.downcodes.com/upfiles/20050402/20050402011004_sound_swish.wav" // 글꼴 var Slidefont="Arial" // 글꼴 색상 var Slidefontcolor= "blue" // 글꼴 크기(허용되는 값은 1~6) var Slidefontsize=2 // 슬라이드쇼 너비(픽셀) var Slidewidth=360 // 슬라이드 쇼 높이(픽셀) var Slideheight=160 //각 슬라이드 사이에 일시 중지 (초) var Pauseslide=3 // 이 줄 아래의 코드는 편집하지 마세요 // /////////////////////////////// ///////// /// var textposition="right_auto" var Slidecontent var max_space=19 var space=" " var i_substring=0 var i_space=max_space var all_space=" " var content="" var Pausefade= 20 var i_slide=0 var i_filter=- 1 var nextorprevious=1 var 투명도=0 var transparentstep=5 var isloaded=false var 시작=false var stopshow=false var newpause=pauseslide var checkpause=200 var neximage="" var Howmanycomplete= 0 var preload_slides=-1 var 중지 슬라이드= 중지 슬라이드*1000 var browserinfos=navigator.userAgent var ie=document.all&&!browserinfos.match(/Opera/)?1:0 var ns6=document.getElementById&&!document.all?1: 0 var ns4=document.layers?1 :0 var op=browserinfos.match(/Opera/) var preloadedimages=new Array() for (i=0;i<slideurl.length;i++){ preloadedimages[i]=new Image() preloadedimages[i].src =slideurl[i] } function initslideshow4() { setimagetocache() getcontent() if (ie) { Slidecontainer.innerHTML=slidecontent } if (ns6 || op) { 투명도=100 문서. getElementById('slidecontainer').innerHTML= Slidecontent } var inittimer=setTimeout("checkifcached()",100) } function setimagetocache() { preload_slides++ if (preload_slides<=slideurl.length) { nextimage=new Image(); src=slideurl[preload_slides]; checkautocached( ) } } function checkautocached() { if (nextimage.complete) { Howmanycomplete++ setimagetocache() } else { var 타이머2=setTimeout("checkautocached()",checkpause) } } function stoplideshow( ) { stopshow=true } functionplaylideshow( ) { stopshow=false } function checkifcached() { if (i_slide<=howmanycomplete) { if (ie) { if (textposition=="top_auto" || textposition=="bottom_auto" | | textposition=="left_auto" || textposition=="top_auto_nocontrols" || textposition=="bottom_auto_nocontrols") { var nextimer=setTimeout("autoslide()",newpause) } if (textposition =="top_hand" || textposition= ="bottom_hand" || textposition=="right_hand") { if (시작됨) { Handslide() } 시작됨=true } } if (ns6 || op) { if (textposition==" top_auto" || textposition=="bottom_auto" || textposition=="left_auto" || textposition=="right_auto" || textposition=="top_auto_nocontrols" || textposition=="bottom_auto_nocontrols ") { unfadeslide() } if ( textposition=="top_hand" || textposition=="bottom_hand" || textposition=="left_hand" || textposition=="right_hand") { if (시작됨) { fadeslidehand() } 시작됨=true } } } else { newpause =newpause-checkpause if (newpause<1200) {newpause=1200} var 타이머2=setTimeout("checkifcached()",checkpause) } } function getcontent() { if (textposition== "top_auto") { Slidecontent="< Font Face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font><br> <a href='"+slidelink[ i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' border=0> </a><br><a href='javascript:stopslideshow()'><fontface='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>중지</font ></a> <a href= 'javascript:playslideshow()'><fontface='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>재생</font>< /a>" } else if (textposition ==="bottom_auto") { Slidecontent="<a href='javascript:stopslideshow()'><fontface='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>중지 </font></a> <a href='javascript:playslideshow()'><fontface='"+slidefont+"' size='"+slidefontsize+"' color= '"+slidefontcolor+"'>재생</ 글꼴></a><br><a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name= 'slideimage' src='"+slideurl[ i_slide]+"' border=0></a><br><fontface='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+ "'>"+slidecomment[i_slide]+ "</font>" } else if (textposition=="left_auto") { Slidecontent="<table cellpadding=3cellspacing=0 border=0><tr valign=top>< td align=right><a href=' javascript:stopslideshow()'><fontface='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>중지</font>< /a> <a href='javascript:playlideshow()'><fontface='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>재생</font></a ><br><br><fontface ='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font></td> <td><a href='"+ 슬라이드링크[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' 테두리 =0></a></td ></tr></table>" } else if (textposition=="right_auto") { Slidecontent="<table cellpadding=3 cellpacing=0 border=0><tr valign =top><td><a href= '"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+ "' border=0></a> </td><td><a href='javascript:stopslideshow()'><fontface='"+slidefont+"' size='"+slidefontsize+"' color=' "+slidefontcolor+"'>중지</font ></a> <a href='javascript:playslideshow()'><fontface='"+slidefont+"' size='"+slidefontsize+"' color='"+ Slidefontcolor+"'>재생</font>< /a><br><br><fontface='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[ i_slide]+"</font></ td></tr></table>" } else if (textposition=="top_auto_nocontrols") { Slidecontent="<font Face='"+slidefont+"' size='" +slidefontsize+"' color='"+slidefontcolor+ "'>"+slidecomment[i_slide]+"</font><br><a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide ]+"'><img name=' Slideimage' src='"+slideurl[i_slide]+"' border=0></a>" } else if (textposition=="bottom_auto_nocontrols") { Slidecontent="<a href='"+slidelink[i_slide]+ "' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' border=0></ a><br><fontface=' "+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font>" } else if (텍스트 위치 =="top_hand") { Slidecontent=" <font Face='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"</font>< br><a href='"+slidelink [i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl[i_slide]+"' border= 0></a><br>< a href='javascript:checkifcached()'><fontface='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>다음< /font></a>" } else if (textposition=="bottom_hand") { Slidecontent="<a href='javascript:checkifcached()'><fontface='"+slidefont+"' size='"+ Slidefontsize+"' color='"+slidefontcolor+" '>다음</font></a><br><a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"' ><img name='slideimage' src= '"+slideurl[i_slide]+"' border=0></a><br><fontface='"+slidefont+"' size='"+slidefontsize+"' 색상 ='"+slidefontcolor+"'>"+ Slidecomment[i_slide]+"</font>" } else if (textposition=="left_hand") { Slidecontent="<table cellpadding=3cellspacing=0 border=0><tr valign=top><td align=right> <a href='javascript:checkifcached()'><fontface='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>다음 </font></a><br ><br><fontface='"+slidefont+"' size='"+slidefontsize+"' color='"+slidefontcolor+"'>"+slidecomment[i_slide]+"< /font></td><td> <a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src='"+slideurl [i_slide]+"' border=0> </a></td></tr></table>" } else if (textposition=="right_hand") { Slidecontent="<table cellpadding=3cellspacing=0 border=0><tr valign=top> <td><a href='"+slidelink[i_slide]+"' target='"+slidetarget[i_slide]+"'><img name='slideimage' src=' "+slideurl[i_slide]+"' 테두리 =0></a></td><td><a href='javascript:checkifcached()'><fontface='"+slidefont+"' size='" +slidefontsize+"' color='"+slidefontcolor+ "'>다음</font></a><br><br><fontface='"+slidefont+"' size='"+slidefontsize+"' color='" +slidefontcolor+"'>"+slidecomment[i_slide ]+"</font></td></tr></table>" } } // http://www.downcodes.com의 추가 자바스크립트 함수 unfadeslide() { if (transparency<100){ transparent+= transparentstep if (ns6) { document.getElementById('slidecontainer').style.MozOpacity=transparency/100 } var fadetimer=setTimeout("unfadeslide()",pausefade) } else {clearTimeout (fadetimer) var fadetimer=setTimeout("fadeslide ()",newpause) } } function unfadeslidehand() { if (transparency<100){ transparent+=transparencystep if (ns6) { document.getElementById('slidecontainer').style.MozOpacity =transparency/100 } var fadetimer=setTimeout( "unfadeslidehand()",pausefade) } else {clearTimeout(fadetimer) } } function fadeslide() { if (!stopshow) { if (transparency>0){ transparent-=transparencystep if (ns6) { document.getElementById('slidecontainer ').style.MozOpacity=transparency/100 } var fadetimer=setTimeout("fadeslide()",pausefade) } else { var autotimer=setTimeout("autoslide()",200) } } else { var stoptimer=setTimeout(" fadeslide()",500) } } function fadeslidehand() { if (transparency>0){ transparent-=transparencystep if (ns6) { document.getElementById('slidecontainer').style .MozOpacity=transparency/100 } var fadetimer= setTimeout("fadeslidehand()",pausefade) } else { i_slide++ if (i_slide>=slideurl.length) {i_slide=0} getcontent() document.getElementById('slidecontainer'). innerHTML=slidecontent 투명도=0 var fadetimer=setTimeout ("unfadeslidehand()",500) } } function autoslide(){ if (ie) { if (!stopshow) { newpause=pauseslide i_slide++ if (i_slide>=slideurl.length) {i_slide=0} getcontent() i_filter++ if (i_filter>slidecontainer.filters.length-1) {i_filter=0} Slidecontainer.filters[i_filter].apply() Slidecontainer.innerHTML=slidecontent document.all.sound.src=slidesound ; Slidecontainer.filters[i_filter].play( ) checkifcached() } else { var stoptimer=setTimeout("autoslide()",500) } } if (ns6 || op) { newpause=pauseslide i_slide++ if (i_slide>=slideurl .length) {i_slide=0} getcontent( ) document.getElementById('slidecontainer').innerHTML=slidecontent 투명도=0 i_space=max_space checkifcached() } } 함수 Handslide(){ i_slide++ if (i_slide>=slideurl.length) { i_slide=0} getcontent() if (ie ) { i_filter++ if (i_filter>slidecontainer.filters.length-1) {i_filter=0} Slidecontainer.filters[i_filter].apply() Slidecontainer.innerHTML=slidecontent Slidecontainer.filters[i_filter ].play() } if (ns6 | | op) { document.getElementById('slidecontainer').innerHTML=slidecontent 투명도=100 } } function simpleslideshow() { i_slide++ if (i_slide>=slideurl.length) {i_slide=0 } document.slideimage.src=preloadedimages[i_slide ].src simpleslideshowcomment() var fadetimer=setTimeout("simpleslideshow()",pauseslide) } function simpleslideshowcomment() { if (i_space>=0){ all_space="" content=" " for (i=0;i<i_space ;i++) { all_space+=" " } for (i=0;i<slidecomment[i_slide].length;i++) { var thisletter=slidecomment[i_slide].substring(i,i +1) thisletter=thisletter+all_space content+= thisletter } window.status=content i_space-- var fadetimer=setTimeout("simpleslideshowcomment()",pausefade) } else {clearTimeout(fadetimer) i_space=max_space } } function simpleslideshowjump() { if (slidetarget[i_slide]=="_self ") { document.location.href=slidelink[i_slide] } else if (slidetarget[i_slide]=="_blank") { codepopup=window.open(slidelink[i_slide], " code", "status=yes,location= yes,toolbar=yes,menubar=yes,resizing=yes,scrollbars=yes,width=780,height=580,top=10,left=10"); } else if ( Slidetarget[i_slide]=="_top") { top.location.href=slidelink[i_slide] } else if (slidetarget[i_slide]=="_parent") { parent.location.href=slidelink[i_slide] } else { var jumpto=eval("parent."+slidetarget [i_slide]) jumpto.location.href=slidelink[i_slide] } } if (ie) { document.write('<div style="position:relative;width:'+slidewidth+ 'px;height:'+slideheight+'px ;overflow:hidden">') document.write('<div id="slidecontainer" style="position:absolute;width:'+slidewidth+'px;height:'+slideheight+ 'px;top:0px;left:0px ;filter:progid:DXImageTransform.Microsoft.GradientWipe(duration=1.2,wipeStyle=1)"></div>') document.write('</div>') 문서. write('<embed src="'+ Slidesound+'" autostart="false" Hidden="true">') document.write('<bgsound id="sound">') window.onload=initslideshow4 } else if ( ns6||op) { document.write( '<div style="position:relative;width:'+slidewidth+'px;height:'+slideheight+'px;overflow:hidden">') document.write('<div id="slidecontainer" 스타일="위치: 절대;폭:'+slidewidth+'px;height:'+slideheight+'px;top:0px;left:0px;-moz-opacity:100"></div>') document.write('</div>' ) window.onload=initslideshow4 } else if (ns4) { document.write('<a href="javascript:simpleslideshowjump()"><img name="slideimage" src=" '+slideurl[0]+'" border =0></a>') i_slide=-1 window.onload=simpleslideshow } // http://www.downcodes.com의 추가 자바스크립트 </script> </td ></tr></table>