Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

what is the java script code to open an embeded you tube video on an onclick mouse event

Posted on 2011-03-08
4
Medium Priority
?
229 Views
Last Modified: 2012-06-21
what is the java script code to open an embeded you tube video on an onclick mouse event, where the mouse will click on a thumbnail that is seperate from the embeded video?
0
Comment
Question by:julianne26
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 

Author Comment

by:julianne26
ID: 35085560
i tried it and i am half way there!! i just need to be able to click on the thum nails, and they in turn will call the embeded video to play.. rember the thumbnials are SEPERATE from the embeded video...heres the code that i need help with

<A HREF="some you tube video link" onclick='return playVideo("ben1","videoPlayback")'>ben 1</A>


where it says "ben 1</A>"  i need to to be able to replace it with a thumbnail (images/play_button_video_1.png) which will fire off the onClick mouse event tp play the video

thanks in advance!
0
 

Accepted Solution

by:
julianne26 earned 0 total points
ID: 35086939
forget the previous question. i figured it out.. i have another one..

each time you click on the links, the link jumps back up to the top of the page, is there any java script the prevents the link from causing the screen to jump? I need the user to be at the same place that he or she was visting, is this possible??
0
 

Author Closing Comment

by:julianne26
ID: 35252774
i have another way to get the solution, however he still deserves an A
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With its various features, Office 365 can not only help you with your day-to-day business tasks, it can also do wonders for your marketing campaign.
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question