![]() |
javascript slideshow - can't get the first slide and last slide button to work.
Hello All,
I have made the below js slideshow but i can't seem to get the button to take you back to the first/last slide Any ideas? Code:
<p><center><h1> Slide Show - Devices</h1></center></p> |
Oh my ... there are several issues in your code
1 - language="Javascript" should be replaced by type="text/javascript"2 - You should get used to correct indentation of code and related brackets Code:
var count = 03 - In two of the if statements you just have "count" ... what do you want to do for those if's? You want to SET a certain value for count, no matter what the current value is Code:
if ( btnselection == 'firstslide'){ |
Update
Quote:
In regards to 3 - Code:
if ( btnselection == 'firstslide' && count >=count+1){ |
You'd do it exactly as I mentioned before
Code:
if ( btnselection == 'firstslide'){ |
| All times are GMT +1. The time now is 08:35 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.