Results 1 to 2 of 2

Thread: LIghtbox into window.open function

  1. #1
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default LIghtbox into window.open function

    I have the following code
    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
    Last edited by neilsabharwal; 09-04-2010 at 04:45 PM. Reason: solved

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •