½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 228 | Á¶È¸¼ö 3,799 | µî·ÏÀÏ 2007-05-28 18:44:56

´Ð³×ÀÓ

happyviolet

À̸ÞÀÏ

kviolet97@hotmail.com

Á¦¸ñ

DIVˤ˂ onmouseover/out
³»¿ë

ÀÌÁ¦ ¸· ½ºÅ©¸³Æ® ½ÃÀÛÇÑÁö¶ó....

ÀÏÄÉ Áú¹® ¿Ã¸³´Ï´Ù.

 

¾î¶² 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>

 

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
°Ë¹«Ç÷½Å 2007-05-31 10:43:57
´ä±Û

±×³É onmouseover À̺¥Æ® ÁØ°÷¿¡ onmouseoutÀ» °°ÀÌ ÁÖ¸é »ç¿ëÀÚ°¡ »ç¿ëÇϱâ Æí¸®ÇÏÁö ¾ÊÀ»±î¿ä ¿øÇϽô °á°ú Ȥ½Ã ±¸ÇöÇϼÌÀ¸¸é ´äÁ» °¡¸£ÃÄÁÖ¼¼¿ä - _-

happyviole 2007-06-01 18:51:32
´ä±Û

boxLayerÀ§ÀÇ °³Ã¼µéÀÇ À̹ÌÁö¸¦ Ŭ¸¯ÇÏ¸é ¸µÅ©·Î À̵¿ÇØ¾ß ÇϰƵç¿ä. ±×·¡¼­ boxLayer¿¡ ¸¶¿ì½º°¡ °¬À»¶§ À̹ÌÁö°¡ ´ÝÇô ¹ö¸² Ŭ¸¯À» ¸øÇÏÀݾƿä.. ¾ÏÆ° ÇØ°áÃ¥ ã°í ÀÖ´Â ÁßÀÌ¿¹¿ä, ´ä ãÀ½ ´Ù½Ã ¿Ã·Á µå¸±²²¿ä~~

happyviole 2007-06-01 18:52:53
´ä±Û

mouseoutÀÌ ¿ä»óÇÏ°Ô ÀϾ³×¿ä~ ±ÛµéÀÌ ¸¹ÀÌ ¿Ã¶ó¿Í ÀÖ³×¿ä ²Ä¼ö¸¦ ½á¾ß ÇÒµíÇϳ׿ä..

°Ë¹«Ç÷½Å 2007-06-06 13:30:55
´ä±Û

À½ ±×·¸±º¿ä ²Ä¼ö¸¦ ½á¾ß°Ú±º¿ä -0-

ÀÌÀü°Ô½Ã±Û À̹ÌÁö ½½¶óÀ̵å ÀÛµ¿ÀÌ Á¦´ë·Î ¾ÈµË´Ï´Ù. 2007-05-28 11:22:17
´ÙÀ½°Ô½Ã±Û c¸¦ ÀÌ¿ëÇÑ cgi ÇÁ·Î±×·¥ ½ÇÇà¿¡ ´ëÇÑ Áú¹®ÀÔ´Ï´Ù Á¦¹ß ´äº¯ ºÎŹµå·Á¿ä. 2007-06-02 21:05:21