Use this javascript function in your frame page..

"
function resizeIframe(iframeID) {
if(self==parent) return false; /* Checks that page is in iframe. */
else if(document.getElementById&&document.all) /* Sniffs for IE5+.*/

var FramePageHeight = framePage.scrollHeight + 10; /* framePage
is the ID of the framed page's BODY tag. The added 10 pixels prevent an
unnecessary scrollbar. */

parent.document.getElementById(iframeID).style.height=FramePageHeight;
/* "iframeID" is the ID of the inline frame in the parent page. */
}
"
and run it on load

"<body id="framePage" onload="resizeIframe('idTopFrame')">"


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 hhc0629 的頭像
    hhc0629

    Z工廠

    hhc0629 發表在 痞客邦 留言(0) 人氣()