ÀÌÁ¦ ¸· ½ºÅ©¸³Æ® ½ÃÀÛÇÑÁö¶ó....
ÀÏÄÉ Áú¹® ¿Ã¸³´Ï´Ù.
¾î¶² thumnailÀ̹ÌÁö¿¡¼ ÀÛÀº È»ìÇ¥ ¹öÆ°¿¡ mouseover°¡ µÇ¸é
boxLayer¾È¿¡ 3°³ÀÇ À̹ÌÁö¸¦ º¸¿© ÁÖ·Á°í ÇÕ´Ï´Ù.
ÀÌ boxLayer´Â width=0¿¡¼ Á¡Â÷ÀûÀ¸·Î ³Ð¾îÁý´Ï´Ù.
ÀÌ boxLayer°¡ º¸ÀÎ ÈÄ¿¡ ÀÌ boxLayer À§¿¡¼ mouseoutÇÏ¸é ´Ù½Ã ÀÌ ·¹À̾
¼û±â·Á°í ÇÕ´Ï´Ù.
±×·±µ¥ boxLayer¿¡ À̹ÌÁö°³Ã¼¸¦ ¿Ã¸®´Ï boxLayer¿¡ mouseoutÀÌ ¸ÔÁú ¾Ê³×¿ä.
ÀÌ div¾È¿¡ À̹ÌÁö¿¡ ¸¶¿ì½º¸¦ °¡Á®°¡¸é mouseoutÀÌ ¸ÔÇô ¹ö¸®³×¿ä
Á¦°¡ ¿øÇÏ´Â°Ç ÀÌ ·¹À̾ ¹þ¾î³ª¸é outÀ̺¥Æ®°¡ ÀÏ¾î ³ª°Ô ÇÏ·Á°í Çϴµ¥¿ä..
¾îÄÉÇÏ¸é µÉ±î¿ä?
¾Æ·¡ ¼Ò½ºÀÔ´Ï´Ù.
´äº¯ ºÎŹµå¸³´Ï´Ù.
<!---- ¼Ò½º ------------>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <style type="text/css"> html {font-size:12px;} img{cursor:pointer;} .clr_ns {clear:both;line-height:0} #smallImage{float:left;position:relative;height:150px;overflow:visible;} #smallImage #Simg {border:1px solid #d2d2d2;width:72;height:100;position:relative;} #smallImage #btn{position:absolute;cursor:pointer;line-height:0;clear:both;} #boxLayer { background-color:#fff; position:absolute; height:58px; border:1px solid #d2d2d2; visibility:hidden; overflow:hidden; float:left; white-space:nowrap; display:inline; padding:4px; } * html #boxLayer {height:66;}
#boxLayer img{ float:left; position:relative; overflow:hidden; }
#showImage {float:left;position:relative;}
</style>
<script type="text/javascript"> rolling_img = null;
function imgRollover(obj, img) { obj.src = img; }
Function.prototype.bind = function(obj) { var method = this; temp = function() { return method.apply(obj, arguments); }; return temp; } function Rolling(objID) { this.ImageId=null; this.Arg=null; this.positionValue=0; this.imgState; this.Tid=null; this.pos=0;
this.initialized=function(objID) { this.ImageId=document.getElementById(objID); } this.initialized(objID);
this.setObject=function(obj) { this.Arg=obj; this.getDetailImage(); }
this.getDetailImage=function() { var arrDetailImage = new Array(); arrDetailImage[0] = "1.gif"; arrDetailImage[1] = "2.gif"; arrDetailImage[2] = "3.gif"; for(j=0; j<arrDetailImage.length; j++){ this.ImageId.innerHTML += "<span><img src='" + arrDetailImage[j] + "' width='82px' style='margin-top:1px;magin-left:" + (84 * Number(j)) + "'/></span>"; } this.ImageId.innerHTML += "<div class='clr_ns'></div>"; }
this.doRolling=function(state) { this.imgState = state; if(this.imgState=="show") { this.positionValue=this.Arg[0]; this.ImageId.style.visibility = "visible"; } else if(this.imgState=="hide") { this.positionValue=this.Arg[1]; }
if(!this.Tid) { this.startMission(); this.Tid=setInterval(this.startMission.bind(this),1); // 0.005ÃÊ ÈÄ¿¡ this.startMission.bind(this) ÇÔ¼ö È£Ãâ - ¹«ÇÑ ·çÇÁ// Tid : timer ID } }
this.startMission=function() { if( (this.positionValue >= this.pos && this.imgState=="show") || ( this.positionValue <= this.pos && this.imgState=="hide") ) { this.adjust = (this.imgState=="show"?1:-1); this.pos = this.pos + ((this.positionValue-this.pos)*0.08) + this.adjust ; this.ImageId.style.width=this.pos+'px'; } if( (this.pos >= this.positionValue && this.imgState == "show") || (this.pos <= this.positionValue && this.imgState == "hide")) { this.missionComplete(); } }
this.missionComplete=function() { clearInterval(this.Tid); this.Tid=null; this.ImageId.style.width = this.positionValue +'px'; if( this.imgState == "hide") this.ImageId.style.visibility = "hidden"; } }
function SetBtnImage() { this.objSimg = document.getElementById('Simg'); this.objBtn = document.getElementById('btn'); this.objBtn.style.top = parseInt(this.objSimg.style.height) - parseInt(this.objBtn.style.height)+2; this.objBtn.style.left = parseInt(this.objSimg.style.width) - parseInt(this.objBtn.style.width)+2; }
function LoadFun() { SetBtnImage(); rolling_img = new Rolling("boxLayer"); rolling_img.setObject(["256","0"]); } </script> </HEAD> <BODY onload="LoadFun();"> <div id="Rolling" > <div id="smallImage"> <img src="lem.gif" id="Simg" style="width:85px;height:48px;"/> <img src="btn_list_up.gif" id="btn" onmouseover="imgRollover(this, 'btn_list_down.gif');rolling_img.doRolling('show');" style="width:17px;height:15px"/> </div> <div id="showImage" > <div id="boxLayer" onmouseout="rolling_img.doRolling('hide');imgRollover(btn, 'btn_list_up.gif');"></div> </div> <div id="text"> [OSEN=È«À±Ç¥ ±âÀÚ]À̽¿±(31. ¿ä¹Ì¿ì¸® ÀÚÀ̾ðÃ÷)ÀÌ<br /> µ¿Á¡ 2·çŸ¸¦ Æ÷ÇÔ ¸ðó·³ ¸ÖƼÈ÷Æ®(2¾ÈŸ ÀÌ»ó)¸¦ ±â·ÏÇß´Ù. <br /> ÀÎÅ͸®±×(±³·ùÀü) µé¾î Ÿ°ÝÀÌ ÁÖÃãÇß´ø À̽¿±Àº 27ÀÏ<br /> µµÄìµ¼ Ȩ±¸Àå¿¡¼ ¿¸° ¿À¸¯½º ¹öÆȷνºÀü¿¡¼ 4¹øŸÀÚ·Î<br /> ¼±¹ßÃâÀå, 4ȸ 2¹ø° Ÿ¼®¿¡¼ µ¿Á¡ 1ŸÁ¡ Àû½Ã ¿ìÀͼ±»ó<br /> 2·çŸ¸¦ ³¯¸° µ¥ À̾î 8ȸ 4¹ø° Ÿ¼®¿¡¼ Åõ¼ö°½À Çà¿îÀÇ<br /> ³»¾ß¾ÈŸ·Î Ãâ·çÇß´Ù. <br /> </div> </div> <div class="clr_ns"></div> </BODY> </HTML>
|