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.
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!
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 21:59.|