Forum Moderators: open
function setHeight(e){
if (e.Document && e.Document.body.scrollHeight) //ie5+ syntax
e.height = e.contentWindow.document.body.scrollHeight;
else if (e.contentDocument && e.contentDocument.body.scrollHeight) //ns6+ & opera syntax
e.height = e.contentDocument.body.scrollHeight + 35;
else (e.contentDocument && e.contentDocument.body.offsetHeight) //standards compliant syntax � ie8
e.height = e.contentDocument.body.offsetHeight + 35;
if(e.contentDocument){
e.height = e.contentDocument.body.offsetHeight + 80;
} else {
e.height = e.contentWindow.document.body.scrollHeight;
}
}
function setHeight(e) {
if (e.Document && e.Document.body.scrollHeight) //ie5+ syntax
e.height = e.contentWindow.document.body.scrollHeight;
else if (e.contentDocument && e.contentDocument.body.scrollHeight) //ns6+ & opera syntax
e.height = e.contentDocument.body.scrollHeight + 35;
else (e.contentDocument && e.contentDocument.body.offsetHeight) //standards compliant syntax � ie8
e.height = e.contentDocument.body.offsetHeight + 35;
if (e.contentDocument) {
e.height = e.contentDocument.body.offsetHeight + 80;
} else {
e.height = e.contentWindow.document.body.scrollHeight;
}
}
function setHeight(e) {
if (e.Document && e.Document.body.scrollHeight) { //ie5+ syntax
e.height = e.contentWindow.document.body.scrollHeight;
} else if (e.contentDocument && e.contentDocument.body.scrollHeight) { //ns6+ & opera syntax
e.height = e.contentDocument.body.scrollHeight + 35;
} else if (e.contentDocument && e.contentDocument.body.offsetHeight) { //standards compliant syntax � ie8
e.height = e.contentDocument.body.offsetHeight + 35;
}
if (e.contentDocument) {
e.height = e.contentDocument.body.offsetHeight + 80;
} else {
e.height = e.contentWindow.document.body.scrollHeight;
}
}