1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Timed refresh of div containing an ad call?

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

  1. halstead

    halstead New Member

    [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.

    http://www.thisisatechpage.com/tnproddev/IDGTNVideo/LR_Mark_Brightroll_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

    [/FONT]
     
  2. shabbir

    shabbir Administrator Staff Member

    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