Results 1 to 10 of 10

Thread: Coverflow Image Gallery, change initial image

  1. #1
    Join Date
    Jul 2015
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Coverflow Image Gallery, change initial image

    1) Script Title: Coverflow Image Gallery

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...lowgallery.htm

    3) Describe problem: Is it possible to have the gallery initially display an image other than the first in the list. For example the third of five. This would make the gallery look more balanced rather then starting with all the images to the right.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, inside coverflow.js, add the line in red after the existing code block:

    Code:
    	$frame.sly({
    		horizontal: 1,
    		itemNav: 'forceCentered',
    		smart: 1,
    		activateMiddle: 1,
    		activateOn: 'click',
    		mouseDragging: 1,
    		touchDragging: 1,
    		releaseSwing: 1,
    		startAt: 1,
    		scrollBar: $wrap.find('.scrollbar'),
    		scrollBy: 1,
    		speed: 300,
    		elasticBounds: 1,
    		easing: 'swing',
    		dragHandle: 1,
    		dynamicHandle: 1,
    		clickBar: 1,
    		// Navigation buttons
    		pagesBar: $wrap.find('.pages'),
    		activatePageOn: 'click'
    	})
    
    	$frame.sly('toCenter')
    Ref: https://github.com/darsain/sly/blob/...ocs/Methods.md
    DD Admin

  3. #3
    Join Date
    Jul 2015
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks very much, it works perfectly.

  4. #4
    Join Date
    Oct 2015
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi I absolutely love this gallery, I was wondering if url links can be attached to the images instead of overlay and enlarged image option, just strictly when clicking on the image will take you to another page, possible?

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, try the below modified version of coverflow.js. Open the file and at the very bottom, change the URLs corresponding to each image to your own:

    Code:
    coverflowimages({
    	coverid: 'coverflow1',
    	images: [
    						['angelinasmall.jpg', 'http://dynamicdrive.com'],
    						['millasmall.jpg', 'http://dynamicdrive.com'],
    						['josiesmall.jpg', 'http://dynamicdrive.com'],
    						['haydensmall.jpg', 'http://dynamicdrive.com'],
    						['ashleysmall.jpg', 'http://dynamicdrive.com'] // <-- no comma after last image
    					] // <-- no comma after last option
    })
    Attached Files Attached Files
    DD Admin

  6. #6
    Join Date
    Oct 2015
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Works But Now does not allow to flip

    THANK YOU for replying. I updated the code according to below, and yes it goes to the link correctly, but now does not allow to flip to next image when I click on the upcoming image, instead of of coming to the center to full view, it takes me to the attached link.

    Is it possible to activate the url link ONLY to the featured image? so it still allows to click on upcoming image to allow it to come to the center for full view, then after it's in full view, click on the image to take to the url?

    I know the dots at bottom can navigate, but it would be fantastic to allow the above!

    Looking forward to hearing back!
    Paola

    PS. You can see my test page at http://apparelbook.net/slidetest.php

    Quote Originally Posted by ddadmin View Post
    Sure, try the below modified version of coverflow.js. Open the file and at the very bottom, change the URLs corresponding to each image to your own:

    Code:
    coverflowimages({
    	coverid: 'coverflow1',
    	images: [
    						['angelinasmall.jpg', 'http://dynamicdrive.com'],
    						['millasmall.jpg', 'http://dynamicdrive.com'],
    						['josiesmall.jpg', 'http://dynamicdrive.com'],
    						['haydensmall.jpg', 'http://dynamicdrive.com'],
    						['ashleysmall.jpg', 'http://dynamicdrive.com'] // <-- no comma after last image
    					] // <-- no comma after last option
    })

  7. #7
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Apparelbook:
    Ok sure, try the below modified .js file, which should restrict the activation of a link only on the currently featured image.
    Attached Files Attached Files
    DD Admin

  8. #8
    Join Date
    Oct 2015
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up SUPER NICE!!! Works PERFECTLY

    WOW Thank you so much, this is FANTASTIC, best image gallery ever!!!! You are amazing

    Quote Originally Posted by ddadmin View Post
    Apparelbook:
    Ok sure, try the below modified .js file, which should restrict the activation of a link only on the currently featured image.

  9. #9
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    Is there a way to make the images responsive for this slideshow?

  10. #10
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    I have just tried this script, as I was hoping to use it in the next edition, but I can't get it working as it does in the demo page. The thumbnails all appear correctly but when clicking on the centre one the full image opens on a new page instead of an overlay and the caption is missing. I've tried debugging in FireFox and Opera but can't see the problem. Any idea what I've done wrong?

    Here's my test page with the CSS and JavaScript all in-line:

    Link

    Edited to add: Problem solved. I had a hybrid of two different versions of coverflow.js which stopped everything working. Unfortunately they had the same date/version number at the top! I reloaded the original and it all works now.

    Edited to add even more: I've now dropped everything into my main page and it's stopped working, so there must be a conflict somewhere. The main page also has FadeSlideShow version 2.6 so that might be the problem.
    Last edited by styxlawyer; 11-29-2015 at 11:40 PM.

Similar Threads

  1. Change positions of image description in image gallery
    By arnaudpopi in forum Dynamic Drive scripts help
    Replies: 11
    Last Post: 10-01-2010, 07:24 AM
  2. Imagepanner initial image scale
    By The_Tominator in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 08-04-2010, 01:17 PM
  3. Thumbnail viewer II - initial image load
    By Wavefront in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 08-30-2008, 06:55 AM
  4. Image Thumbnail Viewer II: Initial image & description
    By Quix in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-08-2007, 01:07 PM
  5. Image Thumbnail Viewer II - Initial Image
    By senz in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 10-27-2006, 03:34 PM

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
  •