1 // Bsoft javascript library
6 function changeIframeContent(id, url) {
7 var iframe = document.getElementById(id);
8 if ( iframe && iframe.src ) {
15 // The id refers to the id tag in Safari and the name tag in Firefox
16 function resizeIframe(id, tx, ty) {
17 var iframe = document.getElementById(id);
18 if ( window.frames[id] && window.frames[id].document) {
19 var body = window.frames[id].document.body;
21 var obj = (iframe.style) ? iframe.style : iframe;
22 obj.width = window.innerWidth - tx + 'px';
23 obj.height = window.innerHeight - ty + 'px';
25 alert("body not found!");
28 alert("iframe " + id + " not found!");
32 function setIFrameSize(id) {
34 f[0].setAttribute("width", f.parent().width());
35 f[0].setAttribute("height", f.parent().height());