Show ads for 5 seconds then a video?

Discussion in 'JavaScript' started by bigrollerdave, Aug 10, 2007.

  1. #1
    Does anyone know how to show and ad for 5 seconds then once the 5 seconds is up hide the ad and show the video? All it would be is a div with an ad in it and a div with the video in it. The div with the ad in it would display for 5 seconds then the script would hide the div and show the video. I'm just not 100% sure on how to code the javascript part to hide the ads div in 5 seconds.

    Here is an example of what I'm talking about

    http://www.relax.net/videos/a-spot-on-the-bugatti-veyron-54.html

    Thanks
     
    bigrollerdave, Aug 10, 2007 IP
  2. Drag Racer

    Drag Racer Peon

    Messages:
    20
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    use the setTimeout method
     
    Drag Racer, Aug 10, 2007 IP
    bigrollerdave likes this.
  3. bigrollerdave

    bigrollerdave Well-Known Member

    Messages:
    2,112
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Perfect thanks a lot rep added
     
    bigrollerdave, Aug 11, 2007 IP