Imam stranicu sa IFRAME-ovima. Kada ucitam nov sadrzaj treba da promenim velicinu iframe-a. To sam postigao u sa ovim skriptom. Medjutim u Opera browseru to ne radi kako treba. Kako? Hvala puno.
<SCRIPT>
function adjustFrame (iframe) {
if (document.all) {
var w = iframe.document.body.scrollWidth+10;
var h = iframe.document.body.scrollHeight+10;
document.all[iframe.name].width = w;
document.all[iframe.name].height = h;
}
else if (document.getElementById) {
var w = frame.document.width;
var h = frame.document.height;
document.getElementById(frame.name).width = w;
document.getElementById(frame.name).height = h;
}
}
</SCRIPT>