Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: How can I change the setting for lightbox image slideshow?

  1. #11
    Join Date
    Jul 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John
    Thanks for that,

    I have edit my js like what you said animate = false;
    see my example again: http://www.xuanyinwen.com/index1.html
    the fading effect still noticeable for me even it going fast.

    is there any way I can make it like the example I gave: http://www.realestate.co.nz/2119917
    and keep the number of photo and close icon showing when changing photo

    thanks!
    Last edited by jscheuer1; 10-03-2013 at 09:34 PM. Reason: Format

  2. #12
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Possibly. I looked through that script very thoroughly though and saw no other place where it was doing any animation like that, though it's obvious that it is.

    The site you keep linking to that you say that you like uses SlimBox:

    http://www.digitalia.be/software/slimbox2

    But I'm not sure it's that same version (might be, or might be close enough), and they use it with options to stop the animations, the default with it is to animate, just like it is with Lightbox. To get rid of the animations, consult this section:

    http://www.digitalia.be/software/slimbox2#usage

    under SETUP. The imageFadeDuration is the one you're talking about right now, but there are a number of others you would want to disable as well to get it like the page you linked to.

    In many ways it's really a better script than Lightbox, especially the version we've been talking about. It's more stable and requires much less code. It has an option for looping too, which I think is also important to you as well.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #13
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Like, inside the slimbox2.js file, you would make the AUTOLOAD CODE BLOCK look like so:

    Code:
    // AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED)
    if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
    	jQuery(function($) {
    		$("a[rel^='lightbox']").slimbox({/* Put custom options here */
    				imageFadeDuration: 1,
    				loop: true,
    				overlayFadeDuration: 1,
    				resizeDuration: 1,
    				captionAnimationDuration: 1
    			}, null, function(el) {
    			return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
    		});
    	});
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #14
    Join Date
    Jul 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John

    so which one you suggest to use if I want to set up something same as the one I like?

    SlimBox or others?

    cheers
    Wayne

  5. #15
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'd go with SlimBox. I tried it out with the settings from my last post:

    " . . . inside the slimbox2.js file, you would make the AUTOLOAD CODE BLOCK look like so:

    Code:
    // AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED)
    if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
    	jQuery(function($) {
    		$("a[rel^='lightbox']").slimbox({/* Put custom options here */
    				imageFadeDuration: 1,
    				loop: true,
    				overlayFadeDuration: 1,
    				resizeDuration: 1,
    				captionAnimationDuration: 1
    			}, null, function(el) {
    			return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
    		});
    	});
    }
    And it worked just like the one you say you like.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #16
    Join Date
    Jul 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John

    Thanks a lot!!! I love you!!!


    Regards

    Wayne

Similar Threads

  1. Resolved why does slideshow image change causes smooth scroll to jump??
    By somethingaboutsunshine in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 03-09-2012, 04:24 AM
  2. Replies: 2
    Last Post: 01-19-2010, 03:53 AM
  3. Setting z-order of image slideshow in "Carousel II" script
    By LCharlier in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 12-29-2007, 06:51 AM
  4. Setting a time change interval?
    By asclepius in forum JavaScript
    Replies: 1
    Last Post: 12-04-2007, 08:50 AM
  5. Drop-in Slideshow Script II (hyperlinked) and Lightbox image viewer 2.0
    By malsyriani@yahoo.com in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 10-25-2006, 04:42 AM

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
  •