Subversion Repositories ZenDark

Compare Revisions

Ignore whitespace Rev 8 → Rev 9

/content-zenphoto.php
15,5 → 15,6
<?php _e('Permalink:', 'sdt'); ?> <a href="a" id="iframe-url">a</a>
</div>
<div>
<iframe id="iframe-page" src="<?php echo $options['zenphoto_url']; ?>" height="100%" onLoad="sdt_autoResize('iframe-page');sdt_getURL('iframe-page');" scrolling="no"></iframe>
</div>
<iframe id="iframe-page" src="<?php echo $options['zenphoto_url']; ?>" height="100%"
onLoad="sdt_delay();sdt_getURL('iframe-page');" scrolling="no"></iframe>
</div>
/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);
}
}