[javascript] 레이어 팝업(배경)
  
 작성자 :
작성일 : 2015-06-08     조회 : 7,748  
 첨부파일 :  home.css (168byte) [1] DATE : 2015-06-08 12:16:14
 첨부파일 :  jquery-1.7.2.min.js (92.6K) [1] DATE : 2015-06-08 12:16:14
 관련링크 :  http://xn--hy1bk5d79ac1z.com/ [530]

<link rel=stylesheet type=text/css href="./popup/home.css">
<script language=javascript src="./popup/jquery-1.7.2.min.js"></script>

<div style="display: none" id=shadow></div>
<div style="z-index: 20001; position: absolute; display: none; margin-left: -335px; top: 120px; left: 50%"  id=pop_layer>
<img src="./popup/cont.jpg"></a>

  <table border=0 cellspacing=0 cellpadding=0 width=670>

  <tr>
    <td colspan=3 align=middle>
      <a onclick=pop_layer_check(); href="javascript:;"><img border=0 align=absmiddle src="./popup/close.png"></a>
    </td>
  </tr>

  </table>


</div>
<script>
function pop_layer_check(lcheck) {
    if ( lcheck== "ok" ) {
        $('#pop_layer').show();
        $('#shadow').show();
    }
    else {
        $('#pop_layer').hide();
        $('#shadow').hide();
    }
}
pop_layer_check("ok");
$(document).ready(function() {
$("#shadow").css('height',$(document).height()+0);

});
</script>