Subversion Repositories ZenDark

Compare Revisions

Ignore whitespace Rev 8 → Rev 9

/js/iframe.js
1,9 → 1,6
function sdt_autoResize(id){
var newheight;
 
// wait a bit so the page can load
newheight = document.getElementById(id).contentWindow.document.body.scrollHeight;
document.getElementById(id).height = (newheight) + "px";
 
24,6 → 21,10
}
}
 
function sdt_delay(){
setInterval("sdt_autoResize('iframe-page')", 1000);
}
 
function sdt_getURL(id){
var url;
var title;
32,4 → 33,4
title = document.getElementById(id).contentWindow.document.title;
document.getElementById('iframe-url').href = (url);
document.getElementById('iframe-url').innerHTML = (title);
}
}