Lightbox XL
We all know how good and how famous lightbox is around the web. Most of us probably have used it or any of its different children (lightbox++, lightbox JS, blah blah, etc…) I had a personal project in mind, an online tool that allow me to search among different providers and view the videos without refreshing pages… lightbox was on my mind. So looking around the net, I found lightbox++, quite good but with some bugs that I had to fix in order to view the videos lightbox style. lightbox++ only allowed me one movie at a time and also, its configuration forced me to have a movie with a .SWF extension, otherwise it won’t work. I builded a solution and I put it the name of lightboxXL. As this is a modification of a library, I DO NOT WANT ANY RECOGNITION for this work, give it to the guys of CONFIDENTIALITY. How it works a) Configure the HEAD section of your HTML page:
<!-- insert the styles of the lightboxXL --> <!-- javascript libraries required --> <script src="js/prototype.js" type="text/javascript"><!--mce:0--></script> <script src="js/scriptaculous.js?load=effects" type="text/javascript"><!--mce:1--></script> <script src="js/multilightboxXL.js" type="text/javascript"><!--mce:2--></script>
b) LigthboxXL parses the document and gets pre-configured URLs when it is loaded. The configuration of such URLs is quite simple (please view the REL and the TAG attributes):
<!----> <!----> <!-- example for single image display --> <a class="lightbox" title="Mac Wallpaper" rel="height:400,width:500,type:jpg" href="images/digg_en.jpg"><img src="images/purple_thumb.jpg" border="0" alt="" /></a> <!-- example for gallery image display --> <a title="Mac Wallpaper: Purple" rel="lightbox[papers]" href="images/purple_en.jpg"><img src="images/purple_thumb.jpg" border="0" alt="" /></a> <a title="Mac Wallpaper: Orange" rel="lightbox[papers]" href="images/orange_en.jpg"><img src="images/orange_thumb.jpg" border="0" alt="" /></a> <a title="Mac Wallpaper: Granite" rel="lightbox[papers]" href="images/granite_en.jpg"><img src="images/granite_thumb.jpg" border="0" alt="" /></a> <!-- example displaying a single FLASH movie --> <a title="Strongbad: Coloring" rel="lightbox" href="images/sbemail.swf"><img src="images/strongbad_thumb.jpg" border="0" alt="" /><;/a> <!-- example displaying a gallery FLASH set --> </a><a title="Strongbad: Coloring" rel="lightbox[setname]" href="images/sbemail.swf"><img src="images/strongbad_thumb.jpg" border="0" alt="" /></a> <a title="Strongbad: Coloring" rel="lightbox[setname]" href="images/sbemail2.swf"><img src="images/strongbad_thumb.jpg" border="0" alt="" /></a>
c) TAGs Explained
- TITLE: title of the image or movie
- TAG: here we set IMG or SWF to tell lightboxXL if it is a flash movie or an image
- HEIGHT: height of the image or movie
- WIDTH: width of the image or movie
- REL: this is a MUST if the link is part of a set you do REL=”lightbox[SETNAME]“
- HREF: where is the movie located?
Well, I think all is quite simple, nevertheless the zip file contains an example with all the possibilities.
Download
|
|
download: LightboxXL for Prototype (1.79MB) added: 09/12/2009 clicks: 3501 |
Tweet this! 






Pingback: Internet Video Search Engine « El Blog del Antonio
Hi!…
you code works very good..
i have a quetion… how i can insert a youtuve video?
you know??
thanks for your help…
and happy new year!!!
PD: i know so litle english… i m from Chile and we speak spanish…. well…
regards!!
Buenas Felipe… has chequeado http://www.antcut.com? Es una página Web que hice para demostrar el uso de Lightbox XL (no para IE)
De todas formas, escribiré un articulo referente a cómo utilizarlo…
Díme si tienes problemas ok?
Un saludo y Feliz Año para tí también!
Es posible hacerlo funcioonar para avi, o wmv o FLV, etc?
No quiero tener que publicar los videos en un youtube ni nada de eso sino tener mis propios videos en el servidor y ejecutarlos.
Gracias por tu ayuda!!
Hola Felipe, quiero preguntarte lo siguiente.
Yo use el codigo de esta pagina para cuando doy clik a un boton se abra un lightbox y me muestre una pelicula en flash.
utilice el ejemplo tuyo pero como la pagina esta dentro de otras subcarpetas tube que redireccionar los enlaces de los scirpt a una carpera llamada lightbox donde guarde todos los archivos requeridos del codigo (para que no se mesclen con los de mi pagina) js, image, css. No obstante, aparentemente funciona pero no me abre la ventana sobre la pagina sino debajo de ella, cuando termina la tabla madre seria, recien ahi me desplega toda la ventana y me muestra el sfw.
I don’t know if I’m in the right place. But, I need to help with LightboxXL.
I can’t make swf files are sbmitted and no animated gifs. In the second visited the page to stop of functionate.
I don’t know if me english to be good. But, I need very much of help.
The code is:
ampliar imagem
Where can to be error.
Grateful for any help.
Hi dinhotaswolf,
I need a bit more of information to help you out.