|
 |
13³â Àü |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> ·¹À̾î Æ˾÷ </title>
<style type="text/css">
#layerPop{width:600px;height:200px;position:absolute;display:none;border:1px solid #ccc;padding:10px;}
#layerPop .close{position:absolute;bottom:5px;right:5px;}
</style>
<script type="text/javascript">
<!--
//·¹À̾î Æ˾÷ ¿±â
function openLayer(IdName, tpos, lpos){
var pop = document.getElementById(IdName);
pop.style.display = "block";
pop.style.top = tpos + "px";
pop.style.left = lpos + "px";
}
//·¹À̾î Æ˾÷ ´Ý±â
function closeLayer(IdName){
var pop = document.getElementById(IdName);
pop.style.display = "none";
}
//-->
</script>
</head>
<body>
<a href="#" onclick="openLayer('layerPop',100,200)">Open</a>
<div id="layerPop">
<strong>³»¿ë</strong>
<ol>
<li>·¹À̾î Æ˾÷ ¿±â: openLayer('·¹À̾î Æ˾÷ID',topÀ§Ä¡,leftÀ§Ä¡)</li>
<li>·¹À̾î Æ˾÷ ´Ý±â closeLayer('·¹À̾î Æ˾÷ID')</li>
<li>÷ºÎÅÍ ·¹À̾î Æ˾÷À» º¸¿©ÁÙ¶ó¸é #layerPop¿¡¼ display:none; Á¦°Å</li>
</ol>
<a href="#" onclick="closeLayer('layerPop')" class="close">close</a>
</div>
</body>
</html> |
|
̵̧ : 743 |
̵̧
¸ñ·Ï
|
|