We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21595
    • 159 Posts
    This version has 4 different types of data that can be loaded into the lightbox:

    • String: you can pass a simple string that will be loaded in the lightbox
    • Image: it can pickup the url of an image and load it inline in the lightbox
    • Local element: you can pass it the ID of an element on the page to be shown in the lightbox. When the lightbox is closed, the element will be hidden and added as the last element within the body
    • AJAX: content can be loaded from a URL with AJAX
    Aside from the image version, you can specify the width and height of the lightbox when invoking it
    If the dimensions of the lightbox are bigger than the user’s window, it will automatically shrink the size of the lightbox (for all except image lightbox)
    The functions have all been put inside of a simple class to avoid function name clashes and encapsulate the functionality
    This doesn’t automatically add the lightbox functionality to links with particular text in them (i.e. rel="lightbox")

    this marvellous script is there: http://www.gregphoto.net/lightbox/

      • 4852
      • 4 Posts
      I am hoping that you might be able to help me. I been searching the forum for hours for an answer.

      I am trying create a css alert using lightbox or any other program. The goal is to provide the user a quick update with background graphic. The text will be controlled by a template variable.

      Do you know how I could make this happen with your version of lightbox? I am only looking to implement this on the home page and not on every page or a gallery.

      Any help you could provide would be greatly appreciated.