Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Forums (http://www.go4expert.com/forums/web-design-forum/)
-   -   Timed refresh of div containing an ad call? (http://www.go4expert.com/forums/timed-refresh-div-containing-ad-t27706/)

halstead 1Feb2012 19:03

Timed refresh of div containing an ad call?
 
Hi, my first post, hoping someone can help me out.

I've got a page that contains a brightcove video player and a 300x250 companion ad that's inside a div.

When the page loads the player initiates and a call is made to DoubleClick for a 300x250 ad. If there is a preroll video ad before the video and it includes a 300x250 companion, this 300x250 companion will overlay the DoubleClick 300x250 ad. Then when the preroll has completed, the 300x250 companion goes away and 300x250 DoubleClick ad remains.

If you view the source you'll see how it's set up.

http://www.thisisatechpage.com/tnpro...oll_Test2.html

I'd like to refresh the DoubleClick ad on a timer, probably every 2 minutes or so. Can anyone tell me how I can accomplish this?

Sample link coming in a minute.

thanks for any help!
Mark


shabbir 1Feb2012 19:37

Re: Timed refresh of div containing an ad call?
 
You can get this done by injecting the code into the Div using JS.

var temp = "<SOMEHTMLCODE>";
var t1 = document.getElementById('<SOMEID>'); if(t1!=null) t1.innerHTML=temp;

And you can execute this based on some timer each time.


All times are GMT +5.5. The time now is 15:00.