iFrame Flash

One of the disadvantages of using iframes is the "white flash" which appears on page load if the content page background is anything other than white.
The widget has a checkbox which inserts some javascript tp prevent this happening.
It inserts some CSS on the page - immediately on page load - which makes all the iframes invisible. The white flash is not visible because the iframe aren't there.
When the page contents - including any iframes - have loaded, the javascript removes the CSS so that the iframes are visible again.
In any other situation where iframes are causing this problem, paste this code into the page Head Code box …

<script type="text/javascript">
(function () {
var div = document.createElement('div'),
ref = document.getElementsByTagName('base')[0] ||
document.getElementsByTagName('script')[0];
div.innerHTML = '&shy;<style>iframe {visibility:hidden; }</style>';
ref.parentNode.insertBefore(div, ref);
window.onload = function() {
div.parentNode.removeChild(div);
}
})();
</script>