Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-12-2012, 10:57 PM   PM User | #1
R_Rbnsn
New to the CF scene

 
Join Date: Jan 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
R_Rbnsn is an unknown quantity at this point
Lightbox YouTube player, Stop play code on closing window

Hi,

First of all please forgive me if I am ignorant, I only have basic code knowledge!

I have been trying to add a lightbox player for videos on my website but have had problems using the widely available ones as a I am using some other javascript on the same page (JPlayer).

I managed to get around it using this and have implemented it into my test page here. The thumbnail for "Soll Football" is the one with the lightbox.

It all seems to be working great and the JPlayer/lightbox window don't seem to be conflicting in any way... only problem is that if you click the "close window" link while the video is open it closes the display but the video keeps playing.

Can anyone please tell me what to do in order to make the YouTube video stop when you close the lightbox window? There must be a line of code I could use to do this surely? Again, as I have very basic coding knowledge if you could literally talk me through it (copy this, paste here etc) that would be really helpful.

Thanks in advance.
R_Rbnsn is offline   Reply With Quote
Reply

Bookmarks

Tags
embed, lightbox, youtube

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:28 AM.


Advertisement
Log in to turn off these ads.