 |
|
|  |
¹öÆ° Ŭ¸¯½Ã ¿¸®´Â ·¹À̾î Æ˾÷ À̵¿°¡´ÉÇÑ ·¹ÀÌ¾î ¸¸µé±â |
|
|
 |
13³â Àü |
¿ì¼± ¸Þ¸ðÀåÀ» ¿°í ¾Æ·¡¼Ò½º¸¦ º¹»ç ÈÄ Layer.js À̸§À¸·Î ÀúÀåÇÕ´Ï´Ù.
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;
function ddInit(e){
topDog=isIE ? "BODY" : "HTML";
whichDog=isIE ? document.all.divpop : document.getElementById("divpop");
hotDog=isIE ? event.srcElement : e.target;
while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){
hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
}
if (hotDog.id=="titleBar"){
offsetx=isIE ? event.clientX : e.clientX;
offsety=isIE ? event.clientY : e.clientY;
nowX=parseInt(whichDog.style.left);
nowY=parseInt(whichDog.style.top);
ddEnabled=true;
document.onmousemove=dd;
}
}
function dd(e){
if (!ddEnabled) return;
whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx;
whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
return false;
}
function ddN4(whatDog){
if (!isN4) return;
N4=eval(whatDog);
N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
N4.onmousedown=function(e){
N4.captureEvents(Event.MOUSEMOVE);
N4x=e.x;
N4y=e.y;
}
N4.onmousemove=function(e){
if (isHot){
N4.moveBy(e.x-N4x,e.y-N4y);
return false;
}
}
N4.onmouseup=function(){
N4.releaseEvents(Event.MOUSEMOVE);
}
}
function hideMe(){
if (isIE||isNN) whichDog.style.visibility="hidden";
else if (isN4) document.divpop.visibility="hide";
}
function showMe(){
if (isIE||isNN) whichDog.style.visibility="visible";
else if (isN4) document.divpop.visibility="show";
}
document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");
function ViewLayer(){
document.getElementById("divpop").style.display='inline'
}
function close_Layer(){
document.getElementById("divpop").style.display='none'
}
ÀúÀåÇÑ µÚ..
°èÁ¤¿¡ ¾÷·Îµå ÇÏ°í..
ºÒ·¯¿É´Ï´Ù. Çصå»çÀÌ¿¡ ³Ö¾îÁÖ¼¼¿ä.
<head>
<script language="javascript" src="°èÁ¤°æ·Î/Layer.js"></script>
</head>
¹öÆ°¿¡ ¸µÅ©°É±â - À̹öÆ°À» Ŭ¸¯½Ã ·¹À̾îÆ˾÷ÀÌ ¿¸³´Ï´Ù.
<a href="javascript:ViewLayer();"><img src="°èÁ¤/¹öÆ°.gif" border"0"></a>
</body> À§¿¡ ¾Æ·¡¼Ò½º¸¦ ³Ö½À´Ï´Ù.
<div id="divpop" style="position:absolute; top:120; left:100px; z-index:200; display:none;">
<table cellpadding="5" cellspacing="0" bgcolor="#FFFFFF" border="5" bordercolor="#424242">
<tr>
<td id="titleBar" style="cursor:move" width="100%" align="center">
<ilayer width="100%" onSelectStart="return false">
<layer width="100%" onMouseover="isHot=true;if (isN4) ddN4(divpop)" onMouseout="isHot=false">
<img src="À̹ÌÁö.gif" border="0">
</layer>
</ilayer>
</td>
</tr>
<tr>
<td align="right" height="10" bgcolor="#424242">
<a href="javascript:close_Layer();"><img src="´Ý±â¹öÆ°.gif" border="0"></a>
</td>
</tr>
</table>
</div>
À§ÀÇ ¼Ò½ºÁß¿¡¼.. <img src="À̹ÌÁö.gif" border="0"> ºÎºÐÀ» ¼öÁ¤Çϼż »ç¿ëÇÏ½Ã¸é µË´Ï´Ù.
À̹ÌÁö»Ó¸¸ ¾Æ´Ï¶ó ÀÀ¿ëÇÏ½Ã¸é ¿©·¯°¡Áö¸¦ ³ÖÀ¸½Ç ¼ö ÀÖ½À´Ï´Ù.
¶ÇÇÑ ÇöÀç´Â ´Ý±â¹öÆ°ÀÌ À̹ÌÁö·Î µÇ¾îÀÖÁö¸¸ À̰ͶÇÇÑ ¼öÁ¤Çؼ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
·¹À̾îÆ˾÷ Å׵θ® »ö»ó ¹× µÎ²²µµ ÃëÇâ¿¡ ¸ÂÃç ¼öÁ¤ÇÏ¿© »ç¿ëÇÏ½Ã¸é µË´Ï´Ù.
|
|
̵̧ : 814 |
̵̧
¸ñ·Ï
|
|
|  |
|