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
218 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Moving applications to the cloud or switching services to cloud-based ones, is a stressful job.  Here's how you can make it easier.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now