SMF Ads Support Forum

Support => Ad Support => Topic started by: IKShadow on December 10, 2006, 11:19:03 am

Title: AD timeout / load last
Post by: IKShadow on December 10, 2006, 11:19:03 am
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.


Code: [Select]
<!-- 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 -->
Title: Re: AD timeout / load last
Post by: jerm on December 10, 2006, 01:14:41 pm
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.
Title: Re: AD timeout / load last
Post by: IKShadow on December 11, 2006, 02:07:17 pm
I found one script but I have difficulites implementing it.

Code: [Select]
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.