Results 1 to 2 of 2

Thread: Close frame with Embed Video

  1. #1
    Join Date
    Mar 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Close frame with Embed Video

    Who can help me with the next problem?

    I have an Iframe with an embeded Windowsmedia video. When the video is at the end, the Iframe must automatic close and return to the mainpage.

    Is there a script for it or can write someone a script that close a frame when the WM video stopped?

    Many thanks for the help!

    wide

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I keep seeing this post and hoping someone who knows the answer will respond but, perhaps you already know part of it. I know how to get rid of an iframe. What I am not real clear on is how to know when the video is over. Is there some variable that can be tested for to find out if the video is over? Or is there one that will let us know when it is finished buffering and has started playing? If either, we can work off of that. When we know the video is over we can do a:

    Code:
    document.getElementById('iframeId').style.display='none'
    or a:

    Code:
    document.getElementById('iframeId').style.visibility='hidden'
    Depending upon if you want the page to collapse into the space the iframe occupied (first method) or simply want the iframe to disappear (second method).
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •