1,9 → 1,4 |
function sdt_autoResize(id){ |
var newheight; |
|
newheight = document.getElementById(id).contentWindow.document.body.scrollHeight; |
document.getElementById(id).height = (newheight) + "px"; |
|
// form now on we try to push some css inside the iframe to |
// modify #main width to 638px (maximum allowed to keep everything |
// inside 700px) without editing the Zenphoto css |
19,6 → 14,12 |
var tt1 = document.getElementById(id).contentWindow.document.createTextNode(def); |
ss1.appendChild(tt1); |
} |
|
//must set the new height after the resize! |
var newheight; |
|
newheight = document.getElementById(id).contentWindow.document.body.scrollHeight; |
document.getElementById(id).height = (newheight) + "px"; |
} |
|
function sdt_delay(){ |