jquery.mb.bgndGallery

A flexible photo gallery as background of your web pages!

With this jQuery plugin you can make suggestive slide show of images as background of your page; the images will adapt their size to the window size fitting always at the best.
You can either navigate the gallery with your keyboard or with a control panel displayed where you whant in the page.

v. 1.6.5

see the demo download it see the documentation

PayPal

What’s new in 1.6.5 version:

demos ave been updated with a new look and feel; the code have been updated to make lookups to the “folderPath” possible on any gallery event; for example (as you can see in the demo_lookUp.html file), you can add images into the specified folder and the gallery will autoupdate showing the new entries in the cycle. This option is available only if the page runs under a web server and if the “folderPath” option is used instead of the images array one.

184 Responses

  1. Sebastian
    Sebastian April 25, 2013 at 10:28 am · Reply

    Hi Matteo,

    great Plugin! Awesome!

    But one question: is there a functionality to dynamically add images to the gallery, or something like “refreshing” the index?
    I’m using the loadFromSystem method, and the images in the folder are dynamically populated from a camera, but I don’t want to start over the gallery every time a new image has been populated.

    Thanks!

    1. Sebastian
      Sebastian April 26, 2013 at 6:34 pm ·

      Hi Matteo,

      Or is there any possiblity to start over the gallery when finished the loop?
      This is very important ;)

      Thanks!

    2. Sebastian
      Sebastian April 29, 2013 at 6:22 am ·

      Hi Matteo,

      thanks for your answer.
      But I think I expressed myself a bit wrong. I want the Gallery to reinitialize after the last picture, so it gets all the new pictures.

    3. Sebastian
      Sebastian April 29, 2013 at 1:49 pm ·

      It would be really, really awesome if we find a solution until tomorrow, 12:00! Do you think there is one? ;-)

    4. Sebastian
      Sebastian April 29, 2013 at 2:49 pm ·

      Oh, that’ a pity :-(
      But thanks anyway, I’ll do a workaround and reload the page every X minutes.

  2. Willy Also
    Willy Also April 16, 2013 at 12:59 pm · Reply

    Firefox 16.0.2
    I don’t understand mbBgndGallery
    http://pupunzi.com/mb.components/mb.bgndGallery/demo/demo.html
    is using an old version with jquery.mb.CSSAnimate.js included.
    This old version does some kind of autoplay, the new version does not.
    The old version scales the image, the new version does not.
    How to get the same functionality with the new version?

    Thank you

  3. Calvin Schultz (@calvincs)
    Calvin Schultz (@calvincs) March 6, 2013 at 2:55 am · Reply

    Hello Matteo,
    Question, When using this plugin, is there a way to detect errors on load of image, and then allow me to properly handle the issue? Aka, I have a list of various remote images, and one of them attempts to load but returns a 404, or is otherwise un succesful. I tested this senario on my local test page and the background just freezes w/ black. I would love to load a defualt image on such an issue or be able to call my own js actions incase something of this nature happens in real life. Any ideas or places I can look in your code to throw in a quick hack? Let me know @calvincs or email! Thanks a ton, love your stuff :-)

    1. Matteo Bicocchi
      Matteo Bicocchi March 7, 2013 at 1:26 am ·

      Hi Calvin,
      Actually there’s no catching for image load errors in the code.
      You could add your code in the “changePhoto” method (line 228 to 284) where the image is loaded.You could add Something like:

      image.error(function(){
      var image=$(this);
      image.attr("src", el.opt.placeHolder);
      })

      after line 272
      And specify the “placeHolder” property in the $.mbBgndGallery.defaults object with the URL to the default image you want to load instead.

      Bye,
      Matteo

  4. Michael Cabus
    Michael Cabus February 21, 2013 at 4:40 am · Reply

    Hi,
    I had this working on my site:

    http://www.arialboundaries.com/ourbeach/

    But it is failing. The images are not loading..it was working..can you help me figure out why?

    Thanks,

    Michael

    1. Matteo Bicocchi
      Matteo Bicocchi February 21, 2013 at 10:51 am ·

      Hi Michael,
      As our page is including the latest jquery and with the last update they removed some methods used by the script; you should roll back to the previous version:

      from:

      to

      bye,
      M

    2. Michael Cabus
      Michael Cabus February 22, 2013 at 1:14 pm ·

      Sorry mate…I uploaded the current version of your plugin…and I uploaded jquery 1.9, and removed the animate js…but the images are still not loading….I’m really puzzled…I can’t see the links you posted in your response.

    3. Matteo Bicocchi
      Matteo Bicocchi February 22, 2013 at 6:14 pm ·

      Hi,
      Looking at the source of your page it seams that the mb.bgndGallery.js file is corrupted;
      it contains only the last few lines of code and that’s why you still have errors in the page.
      Bye,
      Matteo

  5. Paul van Steenoven
    Paul van Steenoven February 11, 2013 at 3:48 pm · Reply

    Hi there, i love your plugin and i want to use it but how do you implement this with a bullet list to switch between the slides? On the onStart i now do a

    (click bullet) {
    var whichSlide = $(this).prevAll().length;
    var gallery = $(“.visual”).get(0);
    $.mbBgndGallery.changePhoto(opt.images[whichSlide],gallery);
    }

    But im getting into timing issues when the autoplay continues and its a mess. Could you help me with this? Thanks

  6. Mayank
    Mayank February 6, 2013 at 7:23 pm · Reply

    Nice Gallery design relay useful for designer and corded…..keep it up.

  7. Marc Herman
    Marc Herman January 29, 2013 at 11:45 am · Reply

    As a temporary solution, using jQuery 1.8.3 and hotlinking to the latest released development version of the jQuery Migrate plugin that migrates older jQuery code to jQuery 1.9+, (loading the plugin after the 1.8.3 version), also does the thing, I would imagine.

  8. Nate Thompson
    Nate Thompson January 29, 2013 at 9:14 am · Reply

    I love this plugin, but you should be aware that when I downloaded the plugin today (1/29/2013) the demos were broken. After comparing to the files on your site, it seems that you need to insert:

    $.browser = {};

    into line 42 of jquery.mb.CSSAnimate.js

    1. Matteo Bicocchi
      Matteo Bicocchi January 29, 2013 at 11:11 am ·

      Hi Nate,
      Yes, I know; With the last jquery update the $.browser has been removed. I’m going to update all the mb plugins soon; For the moment you can patch this using the jquery.mb.browser plugin you can download here:
      http://pupunzi.open-lab.com/2013/01/17/jquery-mb-browser-reintroduce-the-removed-browser-object-in-jquery-1-9/
      Place it just after the jquery inclusion in your page to reintroduce the $.browser object.
      Bye,
      Matteo

1 7 8 9

Leave a Reply