Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

how do you embed a player in an iframe so that a parent frame containing multiple links will use that one player?

i.e. webpage > iframe of links > player in iframe

So far I can create all this, but the files called are opening a standalone media player instead, I've tried with id= name= target= and have reasoned that it is because there's a file extension, that just a path & file name should be provided....

...any pointers?

2 Answers

Relevance
  • Me2
    Lv 7
    6 years ago
    Favorite Answer

    Tested with IE, FF, Opera, Chrome.

    <iframe name="show" height="400" width="600"

    src="about:blank">

    </iframe>

    <br><br>

    <a target="show" href="http://www.time.gov/%22%3ETime of Day</a>

    <br><br>

    <a target="show" href="http://www.ask.com">ask</a%3E

  • 6 years ago

    I got there with the answer given, so I've awarded it best - the results however were achieved specifically using this code: links in containing frame:

    \files.html

    <p><a href="file1.html" target="player"><button title="1">I</button></a>

    <p><a href="file2.html" target="player"><button title="2">II</button></a>

    <p><a href="file3.html" target="player"><button title="3">III</button></a>

    <p><a href="file4.html" target="player"><button title="4">IV</button></a>

    <p><a href="file5.html" target="player"><button title="5">V</button></a>

    <p><a href="file6.html" target="player"><button title="6">VI</button></a>

    <p><a href="file7.html" target="player"><button title="7">VII</button></a>

    <td>

    <iframe id="player" frameborder="0" width="800px" height="600px" src="player.html" name="player" scrolling="no"></iframe>

    iframe target:

    \player.html

    <embed player id="player" width="100%" height="100%" src="about:blank">

    </embed>

    media file in html page:

    \file[].html

    <embed player src="file1.mpg"></embed>

Still have questions? Get your answers by asking now.