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

    Joined:
    Jan 31, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    [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

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice