Unfortunately, due to the agreement I have with the developer of those two scripts, I'm not allowed to modify them in any way, otherwise this would probably be much easier. I thought of using PHP's sleep() before those two lines are sent to the end-users, but that pauses the execution of the rest of the page.
I feel like I'm asking the impossible, but any insight would be greatly appreciated.
I doubt there is a way to stall the execution of whatever is inside those scripts while they are being downloaded to the browser.
By stalling them, if it can be done, implies that you are happy to let them run at a later stage as opposed to blocking or deleting them alltogether, so maybe if you explain why you need to stall them and what you would like to do while they are stalling then maybe someone can help.
The two scripts work together to create an advanced dynamic popup of ads. As of right now, they run immediately after they are loaded. I would like for them to popup after about 30 seconds. I have asked the developer to modify the code to do that, but he refuses, and I'm not allowed to do it. Since my site is a commercial site, I'd prefer not to break his TOS.
Thank you SOO much. That worked perfectly. Originally, I tried writing the necesarry script elements via document.write() until I realized that document.write() can't be used after the page is fully loaded. Otherwise it would overwrite the entire page.
Thanks again for your help. It works like a charm.