- ÀÚ¹Ù½ºÅ©¸³Æ®·Î À̹ÌÁö°¡ ¹«ÇѽºÅ©·ÑÀÌ µÇ¸ç ½ºÅ©·ÑµÉ¶§ ¸¶¿ì½º¸¦ ¿À¹ö½ÃÅ°¸é ½ºÅ©·ÑµÇ´ø°Ô ¸ØÃß¸ç ¼±ÅÃÇÒ¼öÀÖ°Ô µË´Ï´Ù.
º» ¿¹Á¦ÀÇ ÀÚ¹Ù½ºÅ©¸³Æ®ÀÔ´Ï´Ù.
<html> <head> <title>HAPPYCGI</title> </head> <body>
<script language="JavaScript1.2"> /* =========================================== */ /* This code has been tested in */ /* Internet Explorer 6, FireFox 1, */ /* Netscape 7, Opera 7, and eBay */ /* =========================================== */ ; var AuctionThum=new Array() ; var AuctionLink=new Array() ; var AuctionDesc=new Array() ; var ImgWidRatio=new Array() ; ImgWidRatio[0]="1.333" ; ; AuctionThum[1]="http://demo.happycgi.com/jini/pick1.jpg" ; AuctionLink[1]="http://www.happycgi.com" ; AuctionDesc[1]="À̹ÌÁö ¼³¸í 1"
; AuctionThum[2]="http://demo.happycgi.com/jini/pick2.jpg" ; AuctionLink[2]="http://www.happycgi.com" ; AuctionDesc[2]="À̹ÌÁö ¼³¸í 2"
; AuctionThum[3]="http://demo.happycgi.com/jini/pick3.jpg" ; AuctionLink[3]="http://www.happycgi.com" ; AuctionDesc[3]="À̹ÌÁö ¼³¸í 3"
; AuctionThum[4]="http://demo.happycgi.com/jini/pick4.jpg" ; AuctionLink[4]="http://www.happycgi.com" ; AuctionDesc[4]="À̹ÌÁö ¼³¸í 4"
; AuctionThum[5]="http://demo.happycgi.com/jini/pick5.jpg" ; AuctionLink[5]="http://www.happycgi.com" ; AuctionDesc[5]="À̹ÌÁö ¼³¸í 5"
; AuctionThum[6]="http://demo.happycgi.com/jini/pick6.jpg" ; AuctionLink[6]="http://www.happycgi.com" ; AuctionDesc[6]="À̹ÌÁö ¼³¸í 6"
; AuctionThum[7]="http://demo.happycgi.com/jini/pick7.jpg" ; AuctionLink[7]="http://www.happycgi.com" ; AuctionDesc[7]="À̹ÌÁö ¼³¸í 7"
; AuctionThum[8]="http://demo.happycgi.com/jini/pick8.jpg" ; AuctionLink[8]="http://www.happycgi.com" ; AuctionDesc[8]="À̹ÌÁö ¼³¸í 8"
; AuctionThum[9]="http://demo.happycgi.com/jini/pick9.jpg" ; AuctionLink[9]="http://www.happycgi.com" ; AuctionDesc[9]="À̹ÌÁö ¼³¸í 9"
; AuctionThum[10]="http://demo.happycgi.com/jini/pick10.jpg" ; AuctionLink[10]="http://www.happycgi.com" ; AuctionDesc[10]="À̹ÌÁö ¼³¸í 10"
; AuctionThum[11]="http://demo.happycgi.com/jini/pick11.jpg" ; AuctionLink[11]="http://www.happycgi.com" ; AuctionDesc[11]="À̹ÌÁö ¼³¸í 11"
; ; var scrollspeed ="30" //½ºÅ©·Ñ ¼Óµµ ; var borderd ="1px" //º¸´õµÎ²² ; var slideborder ="#555555" //º¸´õ»ö»ó ; var slidebgcolor="#ffffff" //¹è°æ»ö»ó ; var textcolor ="#222222" //ÅؽºÆ® »ö»ó ; var gallerywidth="500" //½½¶óÀÌ´õ °¡·ÎÅ©±â ;
var slider1, slider2, maxWid=0; var sliderwidth=0; var quot="'"; var scrollamount=-1; var thCnt=0; var CrossSellimages=new Array(); for (var i=1; i<=AuctionThum.length; i++){if (AuctionThum[i]){thCnt++; if (!ImgWidRatio[i]) {ImgWidRatio[i]=ImgWidRatio[0]}; CrossSellimages[thCnt]='<a href="'+AuctionLink[i]+'" target=_blank>'+ '<img src="'+AuctionThum[i]+'" width="'+Math.round(64*ImgWidRatio[i])+'" height="64" hspace="2" vspace="4" border="0" '+ ' onmouseover="thumbwow(this.alt,this.offsetLeft,this.offsetWidth,'+quot+AuctionDesc[i]+quot+')" '+ ' title="" alt="'+i+'" ></a>'; sliderwidth=sliderwidth+Math.round((64*ImgWidRatio[i])+4); if (ImgWidRatio[i]>maxWid){maxWid=ImgWidRatio[i]} }}; var sliderheight="88"; var CrossSellStrip='<nobr>'+CrossSellimages.join("")+'</nobr>'; if (sliderwidth-maxWid*64<parseInt(gallerywidth)){gallerywidth=Math.abs(sliderwidth-maxWid*64)} function setupGallery(){ document.write('<table border="0" cellspacing="0" cellpadding="0" style="position:relative; border:'+borderd+' '+slideborder+' solid; background-color:'+slidebgcolor+'; width:'+(parseInt(gallerywidth)+2)+'px; height:90px;"><tr><td valign="top" align="center">'); document.write('<div style="position:relative;width:'+gallerywidth+'px;height:89px;overflow:hidden;">'); document.write('<div style="position:absolute;left:0px;bottom:0px;width:'+gallerywidth+'px;height:89px;" onMouseover="scrollamount=0" onMouseout="scrollamount=-1">'); document.write('<div id="slidegroup1" style="position:absolute;left:0px;bottom:5px;"></div>'); document.write('<div id="slidegroup2" style="position:absolute;left:-1000px;bottom:5px;"></div>'); document.write('<div id="blowup" style="position:absolute;left:0px;bottom:0px;visibility:hidden;border:1px '+slideborder+' solid;" onmouseout="unwow()"></div>'); document.write('</div></div>'); document.write('</td></tr><tr><td align="center" id="slidelabel" style="padding:2px; font-family:sans-serif; font-size:14px; font-weight:normal; color:'+textcolor+'">'); document.write(' '); document.write('</td></tr></table>'); }; function loadimages(){ slider1=document.getElementById("slidegroup1"); slider2=document.getElementById("slidegroup2"); slider1.innerHTML=CrossSellStrip; slider2.innerHTML=CrossSellStrip; slider2.style.left=""+sliderwidth+"px"; startaction=setInterval("slideleft()",parseInt(scrollspeed)); }; function slideleft(){ if (parseInt(slider1.style.left)>(sliderwidth*(-1))) {slider1.style.left=(parseInt(slider1.style.left)+scrollamount)+"px"} else {slider1.style.left=(parseInt(slider2.style.left)+sliderwidth+scrollamount)+"px"} if (parseInt(slider2.style.left)>(sliderwidth*(-1))) {slider2.style.left=(parseInt(slider2.style.left)+scrollamount)+"px"} else {slider2.style.left=(parseInt(slider1.style.left)+sliderwidth)+"px"} }; function thumbwow(num,thumOffset,thumSize,label){ if (parseInt(slider1.style.left)<=0){ if (thumOffset+parseInt(slider1.style.left)>0-thumSize){leftstart=thumOffset+parseInt(slider1.style.left)}else{leftstart=thumOffset+parseInt(slider2.style.left)} } else { if (thumOffset+parseInt(slider2.style.left)>0-thumSize){leftstart=thumOffset+parseInt(slider2.style.left)}else{leftstart=thumOffset+parseInt(slider1.style.left)} }; document.getElementById("blowup").style.left=leftstart+0+(Math.round((thumSize-thumSize/0.8-2)/2))+"px"; document.getElementById("blowup").innerHTML='<a href="'+AuctionLink[num]+'" title="'+label+'" target=_blank>'+ '<img src="'+AuctionThum[num]+'" height="80" border="0" ></a>'; document.getElementById("blowup").style.visibility="visible"; document.getElementById("slidelabel").innerHTML=label; }; function unwow(){document.getElementById("blowup").style.visibility="hidden"; document.getElementById("slidelabel").innerHTML=document.getElementById("slidelabel").title }; setupGallery(); loadimages(); </script>
</body> </html>
|