How to make a jquery lightbox open multiple images from one link?

后端 未结 5 1873
傲寒
傲寒 2021-02-03 11:50

Using a lightbox like ColorBox or jQuery Lightbox Plugin how can i make a single link which opens a gallery / array of images?

For example i have 1 thumbnail and when a

5条回答
  •  隐瞒了意图╮
    2021-02-03 12:16

    Using jQuery Lightbox Plugin, the example code says to do the following:

    $(document).ready(function() {
        $('#gallery a').lightBox({fixedNavigation:true});
        $('#gallery a:gt(0)').hide();
    });
    

    That makes all the links open a lightbox and it should have the Next/Back links to browse through the gallery. Is that what you're looking for?

    (The example is available here: http://leandrovieira.com/projects/jquery/lightbox/#example)

提交回复
热议问题