Hi there, I'm a noob to javascript, so was hopping to find some help here...
I believe that what I need is simple, still haven't found any solution.
I have a website serving ads, and links from several systems, and they always come in a format like:
<script language=javasc ript src="http://something.com/script.php?id=2 6758765"></script
This is fine, however I would like to establish a time-out for this, like for instance, if something.com/script.php?id=2 6758765 is not available in 2 seconds, the page would still load instead of trying to load that javascript forever.
What can I do?
Please post some example code. I'm a noob... sorry.
I believe that what I need is simple, still haven't found any solution.
I have a website serving ads, and links from several systems, and they always come in a format like:
<script language=javasc ript src="http://something.com/script.php?id=2 6758765"></script
This is fine, however I would like to establish a time-out for this, like for instance, if something.com/script.php?id=2 6758765 is not available in 2 seconds, the page would still load instead of trying to load that javascript forever.
What can I do?
Please post some example code. I'm a noob... sorry.
Comment