Coinbase

Author Topic: AD timeout / load last  (Read 2590 times)

0 Members and 1 Guest are viewing this topic.

Offline IKShadow

  • Jr. Member
  • **
  • Posts: 13
    • Email
AD timeout / load last
« 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 -->

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: AD timeout / load last
« Reply #1 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.

Offline IKShadow

  • Jr. Member
  • **
  • Posts: 13
    • Email
Re: AD timeout / load last
« Reply #2 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.

SMF Ads Support Forum

Re: AD timeout / load last
« Reply #2 on: December 11, 2006, 02:07:17 pm »
.