dingus Posted February 20, 2008 Share Posted February 20, 2008 hey i'm having a small problem with a javascript i have written (which i am not at libity to post) but basically the script is designed to monitor adbrite click through and report them back to a php script now it works just fine the only problem is accualy loading it if it is loaded before adbrite finishes showing inline ads it will not work and javascript has no sleep function which is a real pain in the ass basically at 2 points i need it to sleep for about 3 seconds while the adbrite code dose its thing dose anyone have any ideas? Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 20, 2008 Share Posted February 20, 2008 Look into JavaScipts setTimeout() and setIntervial() functions; should be what your looking for. Quote Link to comment Share on other sites More sharing options...
dingus Posted February 20, 2008 Author Share Posted February 20, 2008 hey thanks heaps that was exactly what i needed saved me a lot of stress.... i cant beleave i spent so long stuffing around trying to make it work and it was that simple Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 20, 2008 Share Posted February 20, 2008 Your Welcome - That's just part of learning any scripting language; stressing yourself out; only to find out it was something really simple in the end - lol. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.