News:

Help keep this project going by donating or buying adseller pro

Main Menu
Coinbase

AD timeout / load last

Started by IKShadow, December 10, 2006, 11:19:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IKShadow

Hi

I wonder is there a way I could make a timeout (or load last) for scripted ads.

I have one link exchange and when ever that site is down my page need a lot of time to load.

I wonder is there a way to make those scripts load last or at least make some quick timeout.


<!-- oglas izmenjava.com -->
<div><center>
<script language="javascript"
src="http://www.izmenjava.com/script.php?id=1032"
type="text/javascript"></script><br>
<a href="http://www.izmenjava.com">www.izmenjava.com</a>
</center></div>
<!-- konec oglasa izmenjava.com -->

jerm

I actually have the same question, so hopefully someone will read this and let us know how we can do this. I have the same issue here.

IKShadow

I found one script but I have difficulites implementing it.

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(nameOfSomeFunctionToRunOnPageLoad);
addLoadEvent(function() {
  /* more code to run on page load */
});


One of the solution would be java script that execute on body load.