Цветовая палитра | |||
смотреть оглавление
примерразмер кода
|
<script type="text/javascript"> <!-- // Realised by Apachejeff // www.huntingground.freeserve.co.uk function chk_height(){ window.frames["iframe1"].document.body.style.overflow="hidden" iframe1_height=window.frames["iframe1"].document.body.scrollHeight // iframe content height div1_height=parseInt(document.getElementById("div1").style.height) // div1 height height_offset=iframe1_height - div1_height // height difference window.frames["iframe1"].document.body.scrollTop = document.getElementById("div1").scrollTop document.getElementById("temp_div").style.height = height_offset //scroll_pos=document.getElementById("iframe1").scrollTop } // onload="chk_height()" // add to the opening BODY tag // --> </script>
<iframe id="iframe1" name="iframe1" src="yourpage.htm" style="position:absolute; left:30px; top:100px; width:330px; height:200px; border:2px dotted blue"></iframe>
<DIV id="div1" style="position:absolute; left:590px; top:320px; width:43px; height:100px; overflow:auto; z-index:5; border:2px dotted red" onscroll="chk_height()">
<div id="temp_div" style="width:1; height:1"></div>
</DIV>