Results 1 to 2 of 2

Thread: Lightbox - how to open iframe inside lightbox instead of image

  1. #1
    Join Date
    Dec 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Lightbox - how to open iframe inside lightbox instead of image

    Hello

    I have downloaded this lightbox2.03a.zip

    But i want to open iframe inside the lightbox popup on load of the body.

    I do not want any anchor or HREF.

    I have done this with this function :

    function initLightbox() { myLightbox = new Lightbox();
    var firstLight;
    if(firstLight=document.getElementById('the_first'))
    firstLight.onclick.apply(firstLight);
    }
    Event.observe(window, 'load', initLightbox, false);


    But this is for the anchor and images, I am not able to open iframe inside this.

    Can anyone please help

    Thanks in advance

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,127
    Thanks
    44
    Thanked 3,228 Times in 3,189 Posts
    Blog Entries
    12

    Default

    Lightbox doesn't do iframes. I'd recommend Fancybox:

    http://fancybox.net/

    But there are others:

    http://colorpowered.com/colorbox/

    and:

    http://www.p51labs.com/lightwindow/

    And I'm sure there are tons of others if you Google around with terms like iframe and lightbox.
    - 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
  •