...

View Full Version : load iframe every 3 minutes



FREEPL
12-06-2009, 11:35 AM
Hi everyone,

I run a streaming site and would like google adsense to appear at the bottom of the page/stream every 3 minutes, stay for 15 seconds and then close automatically. Then after another 3 minutes they'd appear again, stay for 15 seconds and then close again, etc, etc.

I'd imagine having the adsense in an iframe would be easier.

I'd also like to give users the option to close the adsense using a close button at the top of the iframe if they don't want to wait 15 seconds.

Is this possible?

gusblake
12-06-2009, 03:59 PM
That sounds fairly easy



function hideIframe() {
//close iframe
setTimeout("showIframe()",180000);
}

function showIframe() {
//show iframe
setTimeout("hideIframe()",15000);
}

//assign 'button' to your close button

button.addEventListener("click",hideIframe,false)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum