madhouse
09-29-2002, 07:27 AM
Can someone please help, I'm at a loss with this!!
I've adapted a Javascript that I found for an image slideshow. Basically, the scipt I found allows you to scroll left and right through a series of images one at a time. But I adapted the script so that it would scroll through 12 images six at a time i.e. the first six images would be displayed and then by clicking the right arrow button the next six would be displayed. You could then return to the previous six images by clicking the left arrow button.
The script works fine if I use normal input buttons for the left and right buttons. Now my problem is that I want to use a couple of images for the left and right buttons instead. I've tried this but the script then fails to work. I have debugged the script using the MS Development Environment in Visual InterDev and the problem seems to occur on the 'return true' statement. When I step through the code to this line, instead of returning to the button and thereby ending the code to display the next/previous six images, the code restarts from the beginning again.
Any help that someone can give me would be great.
I've adapted a Javascript that I found for an image slideshow. Basically, the scipt I found allows you to scroll left and right through a series of images one at a time. But I adapted the script so that it would scroll through 12 images six at a time i.e. the first six images would be displayed and then by clicking the right arrow button the next six would be displayed. You could then return to the previous six images by clicking the left arrow button.
The script works fine if I use normal input buttons for the left and right buttons. Now my problem is that I want to use a couple of images for the left and right buttons instead. I've tried this but the script then fails to work. I have debugged the script using the MS Development Environment in Visual InterDev and the problem seems to occur on the 'return true' statement. When I step through the code to this line, instead of returning to the button and thereby ending the code to display the next/previous six images, the code restarts from the beginning again.
Any help that someone can give me would be great.