allistar343 — 2010-06-30T16:35:34-04:00 — #1
Hi, we have a script that shows a video player. Is there a way to have it open in an external window a la lightbox?
c2uk — 2010-07-01T06:09:34-04:00 — #2
no sorry, I used to use thickbox, but as that isn't maintained any more they list fancybox as one of the alternatives on their site.
allistar343 — 2010-06-30T17:27:12-04:00 — #3
have you had any expereince working with fancybox? I'm trying to get the size and width set to the dimseions of the iframe but it no longer centers. And eveyrthing is transparent.
http://tac.nvcc.edu/ssuh/jquery.fancybox-1.3.1/index2.html - works with default of 75%
Then click on iframe. The code below doesn't seem to work.
'width' : '590',
'height' : '260',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe',
allistar343 — 2010-06-30T17:10:51-04:00 — #4
The demo person said they havne't seen it done before.
anways i opened their js file, and it's just a document.write to an iframe. I think i got it working with fancybox. I really appreciate your help! Sitepoint is the best!
nimpkish_media — 2010-06-30T16:50:36-04:00 — #5
Do you mean you want to video to open in a lightbox style window?
If that's the case, you should take a look at ShadowBox. I have used it before with flash videos.
c2uk — 2010-06-30T16:57:30-04:00 — #6
lightbox doesn't open in an external window, it's a modal window, and strictly speaking just a couple of divs and some css magic to make it look like another window.
if you search for video lightbox you find a couple of things that might help you, such as http://fancybox.net/
allistar343 — 2010-06-30T16:57:58-04:00 — #7
I wasn't sure if you can use script tags with the lightbox effect.
c2uk — 2010-06-30T17:04:01-04:00 — #8
is there any reason why you can't ask that company?