Need help changing video
Hello everyone! I would greatly appreciate it if someone can help me out with my issue.
I am trying to switch embeded youtube videos using javascript functions that are triggered with the onClick="vidlink();" on a button. The function looks like this.
function vidlink4()
{
videolink = '<object width="293" height="165"><param name="movie" value="http://www.youtube.com/v/fa7jS2xCACw&hl=en_US&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/fa7jS2xCACw&hl=en_US&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="293" height="165"></embed> </object>';
}
I am using <script>document.write(videolink)</script> in the place where the code should be displayed.
I am new to JavaScript, I am very desperate to get this thing working. Please help
Thank You
Mike
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks