How to embed (almost) any document to HTML?

HTML/Javascript issue?

  • I have the following code written into a html document: " <script type="text/javascript"> var Video; function Video1() { Video = "*Youtube Embed Link Here*"; var oEmbed = document.getElementById("vidPlayer"); oEmbed.setAttribute("src", Video); } function Video2() { Video = "*Youtube Embed Link Here*"; var oEmbed = document.getElementById("vidPlayer"); oEmbed.setAttribute("src", Video); } </script> " In the head section; and... " <a onclick="Video1()" href="#Video">Video1</a> <br/> <a onclick="Video2()" href="#Video">Video2</a> <br/><br/><br/> <a target="Video"><embed ID="vidPlayer" src=Video width="500" height="350" valign="bottom"></a> " In the body section. I'm trying to allow the end-user to select "Video1" or "Video2" to play one of two videos but it isn't changing the source of the video player at all. Any idea what I'm doing wrong? D: It all looks right to me.

  • Answer:

    Yes this is a javascript issue.

Corey at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Yes this is a javascript issue.

Lam Koin

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.