Advertise Here
If you’re new here, you may want to subscribe to my RSS feed. Thanks for visiting!
setTimeout('CrankyAdsAsyncLoaderShowWaitcrankyadsadvertisehereUID62441( true )',750); // Show loader only after a little while setTimeout('CrankyAdsAsyncLoaderShowWaitcrankyadsadvertisehereUID62441( false )',10000); // Hide loader if it's clear loading has failed
// Summary: Show / Hide the asynchronous loader DIV function CrankyAdsAsyncLoaderShowWaitcrankyadsadvertisehereUID62441( bShow ) { var asyncLoaderDiv = document.getElementById('crankyads_async_loader_crankyadsadvertisehereUID62441'); if( asyncLoaderDiv ) { if( bShow ) asyncLoaderDiv.style.display = ''; else asyncLoaderDiv.style.display = 'none'; } }
// Summary: Copy content out of the iFrame into the parent HTML function CrankyAdsAsyncLoaderCopyToParentcrankyadsadvertisehereUID62441() { // ** Get the loader DOM elements var asyncLoaderDiv = document.getElementById('crankyads_async_loader_crankyadsadvertisehereUID62441'); var asyncLoaderIFrame = document.getElementById('crankyads_async_loader_iframe_crankyadsadvertisehereUID62441');
// ** Get the iFrame contents var iFrameDocument;
// Chrome / FF if ( asyncLoaderIFrame.contentDocument ) { iFrameDocument = asyncLoaderIFrame.contentDocument; } // IE else if ( asyncLoaderIFrame.contentWindow ) { iFrameDocument = asyncLoaderIFrame.contentWindow.document; }
var iFrameRootTag;
iFrameRootTag = iFrameDocument.getElementsByTagName('body'); // This should be an array of 1
if(iFrameRootTag) iFrameRootTag = iFrameRootTag[0]; if(!iFrameRootTag) // Fallback iFrameRootTag = iFrameDocument.documentElement;
// ** Insert the iFrame contents while( iFrameRootTag.children.length > 0 ) { var iElement = iFrameRootTag.children[0]; iFrameRootTag.removeChild(iElement);
if( iElement.tagName == 'SCRIPT' ) { var scriptTag = document.createElement('script'); scriptTag.type = iElement.type; scriptTag.innerHTML = iElement.innerHTML; asyncLoaderDiv.parentNode.insertBefore(scriptTag,asyncLoaderDiv); } else { asyncLoaderDiv.parentNode.insertBefore(iElement,asyncLoaderDiv); }
}
// ** Remove the loader asyncLoaderDiv.parentNode.removeChild(asyncLoaderDiv); }

