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
Other answers
Yes this is a javascript issue.
Lam Koin
Related Q & A:
- How do I issue multiple commands using telnet or netcat?Best solution by Super User
- Why is Javascript called Javascript, if it has nothing to do with Java?Best solution by Stack Overflow
- How to issue "exec_command" consecutively AND together?Best solution by stackoverflow.com
- How to I fix the below issue? Pleas ONLY Real answers, THANK YOU?Best solution by Yahoo! Answers
- Does anyone know where I can buy just one issue of Italian Vanity Fair here in the US?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.