Scrolling more than a single thumbnail

HomeForums(E)2 Photo Gallery (The Open Source One)Sample of (E)2 Photo GalleryScrolling more than a single thumbnail

This topic has 2 voices, contains 3 replies, and was last updated by   1546 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
February 23, 2008 at 3:48 pm #2476

I’m set up with 5 thumbnails, and I’ve made a change so that when you click to scroll right, a whole new set of 5 thumbnails scrolls in. That’s great, but when the last few thumbnails scroll in, the scroll right arrow remains, and I can keep scrolling nothing. Any way to have that scroll arrow disappear when there’s no more thumbnails to scroll like it did when I was just scrolling single thumbnails?

February 26, 2008 at 1:28 pm #2477

Can anyone help me with this?
The page is here. (A work in progress)

Notice how the right arrow remains and you can keep on scrolling thumbnails
even though there are no more thumbs remaining to scroll.

February 26, 2008 at 2:26 pm #2478

E2

Okay, got it.

Open up the e2photo.js file and find the following on line 116:

function checkbutton(mynum){
	if ( mynum == 0 ) {
		mm_shl('back','hidden');
		mm_shl('more','visible');
	} else if ( mynum < thumbnailnum - maxthumbvisible ) {
		mm_shl('back','visible');
		mm_shl('more','visible');
	} else {
		mm_shl('back','visible');
		mm_shl('more','hidden');
	}
}

change it to:

function checkbutton(mynum){
	var thumbBoxWidth = $('thumbgall').getCoordinates().width;
	if ( mynum == 0 ) {
		mm_shl('back','hidden');
		mm_shl('more','visible');
	} else if ( mynum < thumbBoxWidth - moveamount ) {
		mm_shl('back','visible');
		mm_shl('more','visible');
	} else {
		mm_shl('back','visible');
		mm_shl('more','hidden');
	}
}

Now find line 165:

currentpos-=1;

and change it to:

currentpos-=moveamount;

Now find line 167:

currentpos+=1;

and change it to

currentpos+=moveamount;

See how that works for you.

February 26, 2008 at 5:32 pm #2479

Works sweetly now. I thank you very much, both for the help and for the wonderful script.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.