Rick... Didn't realize anyone else might be interested in this, so I'll detail my solution here.
1) I query to determine how many records I'm working with (10 for example). <cfset totalslides = 10> 2) I determine the current slide as an incoming URL variable <cfset currentslide = URL.slide> (we'll say 10 in this case). 3) I run the check listed below, which gives me the following values: <cfset prev = 9> <cfset next = 1> <!----------------//------ andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Saturday, April 22, 2006 10:31 AM To: CF-Talk Subject: RE: next and previous buttons for slideshow I've been following this thread because the method of "next / previous" is better than what I currently use...so... I was looking over the code below and I have a few questions... How is the variable "currentSlide" being defined? In assumed previous code? Also, would you put some hard numbers in there for me to view how the functions are working? TIA... Rick -----Original Message----- From: Dave Francis [mailto:[EMAIL PROTECTED] Sent: Saturday, April 22, 2006 10:36 AM To: CF-Talk Subject: RE: next and previous buttons for slideshow This should work: <cfset totalSlides=10> <cfset nextSlide = (currentSlide MOD totalSlides) + 1> <cfset prevSlide = (currentSlide - 1) + (totalSlides * (currentSlide eq 1))> -----Original Message----- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Friday, April 21, 2006 4:45 PM To: CF-Talk Subject: RE: next and previous buttons for slideshow Okay. I just condensed it into a CFC. now I don't have to look at that code every time. <!----------------//------ andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Friday, April 21, 2006 3:35 PM To: CF-Talk Subject: RE: next and previous buttons for slideshow Really? Durnit...that sucks...it's sooo clunky. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238514 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

