Installing jQuery lightbox?

Discussion in 'JavaScript' started by BitzDefender, Jul 15, 2012.

  1. #1
    BitzDefender, Jul 15, 2012 IP
  2. KsNitro

    KsNitro Greenhorn

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    20
    #2
    I've never used it but it looks like you need to set a class to lightbox since that is what your jquery selector is trying to do.


    <script type="text/javascript">
    $(function() {
    	$('a.lightbox').lightBox{(fixedNavigation:true)}; // Select all links with lightbox class
    });
    </script>
    Code (markup):
    That would select all anchor elements with the class = 'lightbox".

    Something like:

    <a class="lightbox" ....>
    Code (markup):
    If you were trying to select some other elements then just update your selector in your javascript at the top. Be sure to select the correct elements.
     
    KsNitro, Jul 17, 2012 IP