UltimateZoneBuilder/Help/scripts.js

20 lines
506 B
JavaScript
Raw Normal View History

2009-04-11 10:22:08 +00:00
function autoadjustheight(iframeid)
{
// Find the height of the internal page
var doc_height = document.getElementById(iframeid).contentWindow.document.body.scrollHeight;
// Change the height of the iframe
document.getElementById(iframeid).height = doc_height;
}
//mxd
function ToggleSpoiler(t){
var d = t.nextSibling.nextSibling;
if (d.style.display != '') {
d.style.display = '';
t.value = 'Hide image';
} else {
d.style.display = 'none';
t.value = 'Show image';
}
}