Hi there. I am sort of a mid-level javascripter, and I'm wondering if anyone would know a code I could use to make these previous/next buttons active. The reason I can't figure it out is that the thumbnails below currently control which image appears above, and I'd like the previous/next to also do so, but in the relative order of the corresponding thumbnails. I'd image there would be some way or specifying the current image, and adding either +1 or -1 or something along those lines? any help would be greatly appreciated. Page link below.
thanks for the response...I've never used that and my only hesitation is that I have so much else going on in my gallery already...the thumbnails slide in and out, and I have all the images swapping correctly. Is there any type of script that would just either add or subtract 1 to the name of the currently displayed image?
I think we could do that, but you have a bigger error that you should fix, first.
If I click on the >> arrow at the right of the thumbnails and then click on any thumbnail, I get a SPRY error message. Should you figure that bug out, first?
But in the meantime, another problem you have is that ancient ancient DreamWeaver code in there. That stuff is so old, it creaks. Was used when computers still were larger than trucks. (Oh, okay....slight exaggeration.)
Pretty much you should get rid of anything that starts with "MM_".
Great...thank you for all that. I see that the onclicks were clashing...so does the code I have for the 1st thumbnail look better? It seems to be creating the same problem when I put it online (it, along with all the other ones, works perfectly locally on my computer).
Great...thank you for all that. I see that the onclicks were clashing...so does the code I have for the 1st thumbnail look better? It seems to be creating the same problem when I put it online (it, along with all the other ones, works perfectly locally on my computer).
As I said, the problem with the slow images is because you are not pre-loading the large images.
DreamWeaver does have a standard function for doing this. Or you could find one online. Or if you can't find one, I guess I could try creating one. But if I did that, I'd want to rewrite it all. <grin/>
In the long run--and not very long--you'd be much better off just getting rid of *ALL* the DW code (anything that starts with MM_) and going entirely to some other library. Spry, if it will do it all. Something else, if not.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
I guess I'm more of a novice than I thought...so anyhow it seems I've got the image problem solved...the thing I really need now is to focus on the Previous/Next buttons. Any thoughts on those? I really don't know how to start. Thanks!
Thank you all for your advice, but the thing I'm most concerned with now is the previous/next button. I like the way the page is currently functioning, and I'd just like to add functionality to those two. Thanks a lot!
Okay...do you want them to move from set to set? That is, when you go NEXT from #12, does it move to #1 in the other set of 12??? Or should it cycle back to #1 in the current set? (The latter will be easier, because if you change sets you have to also change which sub-panel is showing.) Or do you want it to not cycle? (But then you have to provide a visual indication that the end has been reached, so cycling is easier.)
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
I want it to actually go to the next image in the same set (or if it was image 12 in the 1st set, then image 1 from the next set--which I guess would have to load the 2nd set of lower images as well.) So If you're looking at picture 4, I'd like "next" to display picture 5, or "previous" to display picture 3. Ok let me know if that isn't clear, I'm struggling over here!
That is *SO* close to what you have *AND* it has several additional nice features.
Including the ability to put captions on the images, if you want. Including a timed slide show if you want. *AND* it even has the preload built in, so you won't see the problem you have now with new images.
It would take a lot of work to take that thing you have now up to this level.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.