Forum Moderators: open
I am facing a bit of a strange problem. I am setting up an adsever and to make sure the page loads quickly regardles how long the ads are taking (if ever) I am using empty
<div id="oas-Top"></div>
and then replace the content end of the page as follows:
<script type="text/javascript"><!--
// returns AD content to visible
function showAdvert(pos) {
document.getElementById("oas-"+pos).innerHTML = document.getElementById("oas-"+pos+"-parent").innerHTML;
}
//--></script>
<div id="oas-Top-parent" style="display:none"><script type="text/javascript">
<!--
OAS_AD('Top');
//-->
</script>
<script type="text/javascript"><!--
showAdvert("Top");
//-->
</script>
It works most of the time (always in FireFox) but some complex JS code served by the adsystem get IE to stop loading. Any thoughts or ideas are welcomed.
Cheers
Klaus