?
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
?
227 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
The top devops trends for 2017 are focused on improved deployment frequency, decreased lead time for change and decreased MTTR.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
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…
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

770 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