1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Timed refresh of div containing an ad call?

Discussion in 'Web Design, HTML And CSS' started by halstead, Feb 1, 2012.

  1. halstead

    halstead New Member

    Jan 31, 2012
    Likes Received:
    Trophy Points:
    [FONT=&quot]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!

  2. shabbir

    shabbir Administrator Staff Member

    Jul 12, 2004
    Likes Received:
    Trophy Points:
    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.

Share This Page