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
222 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
  • 3
4 Comments
 
LVL 8

Expert Comment

by:vsudip
ID: 35078832
0
 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ajax contents 13 287
Scroll through Images 2 182
Expand and Collapse Tree Grid 11 570
Flexbox navigation issue 4 91
Starting your own business is always a daunting process, and for most people it is brand new experience. Avoid the common pitfalls by following these tips to start on the road to success.
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

792 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