Notice
Recent Posts
Recent Comments
Link
Daniel's Knowledge Storage
플래시 창 크기에 맞게 자동 확대 본문
창의 크기를 알아내어 embed 태그의 width와 height를 창크기의 변화에 따라 동적으로 변경해 줍니다...
익스에서만 됩니다...
<script language="Javascript">
function printScreenInfo() {
screenInfo.innerHTML = "<embed src=xxx.swf width='" + document.body.clientWidth + "' height='" + document.body.clientHeight + "'>";
}
window.onresize = printScreenInfo;
window.onload = printScreenInfo;
</script>
<body topmargin=0 leftmargin=0 scroll=no>
<div id=screenInfo>
</div>
익스에서만 됩니다...
<script language="Javascript">
function printScreenInfo() {
screenInfo.innerHTML = "<embed src=xxx.swf width='" + document.body.clientWidth + "' height='" + document.body.clientHeight + "'>";
}
window.onresize = printScreenInfo;
window.onload = printScreenInfo;
</script>
<body topmargin=0 leftmargin=0 scroll=no>
<div id=screenInfo>
</div>
'Develop > 자바스크립트' 카테고리의 다른 글
DIV 전체화면 화면 잠금 - 크로싱,스크롤에도 문제 없음 (0) | 2010.01.05 |
---|---|
아이디 패스워드 입력창에 기본값(value) 넣어 두기 (1) | 2009.08.09 |
텍스트, 이미지 한줄씩 롤링시키기 HTML+Script (1) | 2009.04.25 |
클릭하면 클립보드로 텍스트 저장 (0) | 2008.06.26 |
Comments