ํฐ์คํ ๋ฆฌ ๋ทฐ
ie๋ณด์ ํ๋๋ฉ์ธ๋ด์ฉ์ iframe ๋ฃ์์๋ ์๋๋์ด ์กฐ์
๐ฉท ์ ๐งก 2009. 7. 2. 17:42ํ ์๋ฒ ๊ฒฐ๊ณผํ์ด์ง ๋ถ๋ถ
<script type="text/javascript">function rsize() {
var iframe = document.getElementById( 'inneriframe' );
var wrapper = document.getElementById( 'wrapper' );
var height = Math.max( document.body.offsetHeight, document.body.scrollHeight );
iframe.src = 'http://์ฐ๋ฆฌ์๋ฒ/auto_size.html?height='+height;
}
</script>
<body bgcolor="#FFFFFF" onload=rsize(); >
์ฐ๋ฆฌ์๋ฒ๋จ ์ฒ๋ฆฌ๋ด์ฉ
<script type="text/javascript">
function updateIFrame( height ) {
var iframe = document.getElementById( 'Content' );
iframe.setAttribute( 'height', height );
}
</script>
<iframe id="Content" name="Content" src="http://ํ์๋ฒ ๊ฒฐ๊ณผํ์ด์ง.php?search=yes&q=" border="0">
๋ณด์๋ฌธ์ ๋ก ํ๋๋ฉ์ธ์ ์๋ ๋ด์ฉ๋ฌผ์ iframe์ผ๋ก ๋ฃ์์๋ ๊ฒ์๊ฒฐ๊ณผ๋ฑ์ ์๋์ผ๋ก ๋์ด์กฐ์ ์ด
์๋๋๊ฒ์ ์๋ฒ์ ์คํฌ๋ฆฝํธ ์ถ๊ฐ๋ก ํด๊ฒฐ๋จ.
์ฐ๋ฆฌ์๋ฒ์ ์๋ auto_size.html
<html>
<head>
<title>Resizing Page</title>
<script type="text/javascript">
function onLoad() {
var params = window.location.search.substring( 1 ).split( '&' );
var height;
for( var i = 0, l = params.length; i < l; ++i ) {
var parts = params[i].split( '=' );
switch( parts[0] ) {
case 'height':
height = parseInt( parts[1] );
break;
}
}
if( typeof( height ) == 'number' ) {
window.top.updateIFrame( height );
}
}
window.onload = onLoad;
</script>
</head>
<body>
</body>
</html>
'PHP' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
PHP ํธ๋์ญ์ (0) | 2009.07.30 |
---|---|
์น์ ๊ทผ์ฑ์ ์ ๊ทผํด๋ณด์. (0) | 2009.07.09 |
ํํํ (0) | 2009.06.30 |
enJoy youR China (0) | 2009.06.14 |
[๋์๊ตฌ๋งค] PHP ๋ณด์ - ๋ช ์ค์ ์ฝ๋๋ก ์์ ํ๊ฒ (0) | 2008.12.04 |
- Total
- Today
- Yesterday
- ๋ด๋๋ด์ฐ
- Java
- ์ธํจ์ด
- JSTL
- MySQL
- 8๋ง์ผ
- jQuery
- Servlet
- JSON
- EL
- ์๋ธ๋ฆฟ
- ๊ธฐํ
- ๋ณต๊ทผ์ด๋
- JSP
- JS
- 2ne1
- ์์์ฌ์ด๋
- ํจ์
- ์นด๋ฐ์จ๋ผ์ธ
- php
- ๊ฒฝ์ ์ฉ์ด
- ์น์์ด์ ์
- I Don't Care
- ์๋ฐ์คํฌ๋ฆฝํธ
- asp
- ๋ฉ๋ฐฐํ
- ๋์ค
- Ajax
- JavaScript
- ์๋ฆฌ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |