Notice
Recent Posts
Recent Comments
Link
Daniel's Knowledge Storage
DIV 전체화면 화면 잠금 - 크로싱,스크롤에도 문제 없음 본문
<html>
<head>
<script type="text/javascript">
function hid(){
var obj = document.getElementById("bak");
obj.style.width = document.body.scrollWidth + 'px';
obj.style.height = document.body.scrollHeight + 'px';
obj.style.filter = "alpha(opacity=80)";
obj.style.opacity = "0.8";
obj.style.visibility = "visible";
}
</script>
</head>
<body style="margin:0px;">
<div id="bak" style="width:100%;height:100%;top:0px;position:absolute; z-index:1;background:#1B1B1B;visibility:hidden;">
</div>
<div>11111</div>
<input type="button" value="화면가리기" onclick="hid()">
</body>
</html>
'Develop > 자바스크립트' 카테고리의 다른 글
아이디 패스워드 입력창에 기본값(value) 넣어 두기 (1) | 2009.08.09 |
---|---|
텍스트, 이미지 한줄씩 롤링시키기 HTML+Script (1) | 2009.04.25 |
클릭하면 클립보드로 텍스트 저장 (0) | 2008.06.26 |
플래시 창 크기에 맞게 자동 확대 (0) | 2008.06.26 |
Comments