Tana blogja
"A gyertya semmit sem veszít azzal, ha lángra lobbant egy másik gyertyát !"   

Div iframe height problem

április 4th, 2007 by Tana
// auto set iframe container div height to content iframe height
function iFrameHeight(framename) {
   
if(document.getElementById && !(document.all))
{
    h = document.getElementById(framename).contentDocument.body.scrollHeight;
    document.getElementById(framename).height = h+40;
}
else if(document.all)
{
   
    h = document.frames(framename).document.body.scrollHeight;
    document.all.contframe.style.height = h;
}
 

Posted in php |

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.