<script type="text/javascript">
function loginLayerOn(id){
if (document.getElementById(id).style.display == "inline"){
document.getElementById(id).style.display = "none";
}else{
var cfmOllehLayerPopUp340 = document.getElementById(id);
var tmpTop = 0;
if(browser() == "Chrome" || browser() =="MSIE 5.5"){
tmpTop = document.body.scrollTop;
}else if(browser() =="Safari"){
tmpTop = window.pageYOffset ;
}else{
tmpTop = document.documentElement.scrollTop;
}
cfmOllehLayerPopUp340.style.position = "absolute";
cfmOllehLayerPopUp340.style.display = "inline";
cfmOllehLayerPopUp340.style.left = document.body.clientWidth/2 - cfmOllehLayerPopUp340.offsetWidth/2 + "px";
cfmOllehLayerPopUp340.style.top = document.body.clientHeight/2 - cfmOllehLayerPopUp340.offsetHeight/2 + tmpTop + "px";
}
}
function browser() {
var appAgent = navigator.userAgent;
var returnStr ;
if (appAgent.indexOf('MSIE 8.0')>0) returnStr = "MSIE 8.0";
if (appAgent.indexOf('MSIE 7.0')>0) returnStr = "MSIE 7.0";
if (appAgent.indexOf('MSIE 6.0')>0) returnStr = "MSIE 6.0";
if (appAgent.indexOf('MSIE 5.5')>0) returnStr = "MSIE 5.5";
if (appAgent.indexOf('MSIE 5.0')>0) returnStr = "MSIE 5.0";
if (appAgent.indexOf('Chrome')>0) returnStr = "Chrome";
if (appAgent.indexOf('Firefox')>0) returnStr = "Firefox";
if (appAgent.indexOf('Chrome')<0 && appAgent.indexOf('Safari')>0) returnStr = "Safari";
return returnStr;
}
</script>
<Div id="pop" style="position:absolute;left:10px; top:12px; width:100px; height:70px;z-index:1;display:none;BACKGROUND: red">
내용 들어가는 부분
</Div>
<a href="#" onclick="loginLayerOn('pop');"><img src="/images/egovframework/sosang/topmenu/main_menu01_off.gif" width="80" height="30" border="0" alt="정책정보" /></a>