<script>
function _ID(obj)
{
return document.getElementById(obj)
}
function popupLayer(s,w,h)
{
if (!w) w = 0;
if (!h) h = 0;
var pixelBorder = 0;
var titleHeight = 0;
var bodyW = document.body.clientWidth;
var bodyH = document.body.clientHeight;
var posX = (bodyW - w) / 2;
var posY = (bodyH - h) / 2;
hiddenSelectBox('hidden');
var obj = document.createElement("div");
with (obj.style){
}
obj.id = "objPopupLayer";
document.body.appendChild(obj);
var ifrm = document.createElement("iframe");
with (ifrm.style){
width = w - 0;
height = h - pixelBorder * 0 - titleHeight - 0;
}
ifrm.frameBorder = 0;
ifrm.src = s;
obj.appendChild(ifrm);
}
function closeLayer()
{
hiddenSelectBox('visible');
_ID('objPopupLayer').parentNode.removeChild( _ID('objPopupLayer') );
_ID('objPopupLayerBg').parentNode.removeChild( _ID('objPopupLayerBg') );
}
function hiddenSelectBox(mode)
{
var obj = document.getElementsByTagName('select');
for (i=0;i<obj.length;i++){
obj[i].style.visibility = mode;
}
}
</script>
<script language ="javascript">
function goEvtApp( url ) {
popupLayer( url , 725, 500);
}
</script>
<a href ="#" onClick ="goEvtApp('./img/01.jpg'); return false">°øÁö<a>
À§ ¼Ò½º¿¡¼ "°øÁö" ¹öÆ° Ŭ¸¯ Çϸé
À̹ÌÁö°¡ ¶ß´Âµ¥¿ä À̹ÌÁö ¿À¸¥ÂÊ ¹öÆ° Ŭ¸¯Çϸé
ÇÁ·¹ÀÓ ´ÝÈ÷°Ô ÇÒ·Á¸é ¾î¶»°Ô ÇؾßÇϳª¿ä ?
"function goEvtApp" ¾È¿¡ oncontextmenu="closeLayer();"³Ö¾îµµ À̹ÌÁö¿¡ ¿ìÃø¹öÆ°ÀÌ ¸ÔÇô¿ä..¤Ð¤Ð