PDA

View Full Version : Resolved LIghtbox into window.open function



neilsabharwal
09-04-2010, 04:37 PM
I have the following code

function() {window.open(this.url, '_blank',
'width=427,height=298,left=200,top=200');}

i want to add the lightbox code onto the "this.url". to open links in a lightbox i add rel="lightbox, so for example images/image-1.jpg" rel="lightbox

how would i do this?
thanks

jscheuer1
09-04-2010, 04:53 PM
It depends upon which lightbox script you are using. Which is it?

I should also note that, if you want the grouped images with next/previous thats available with many lightbox scripts, you will have to have links. These can be generated with javascript. But that requires a different approach than simply opening one image in a lightbox.

If you want to open a page instead of an image, you need a lightbox script that already allows for that. There are at least several, but not all can. The original lightbox and its official updates cannot.

There are also many, many lightbox type scripts available besides the original and its official updates. Some of these have lightbox in their name or description, others do not. They each have varying features.