Without some kind of ID or numberTag attribute, how can I get the position of which slide I’m looking at? I know with “length” I can see that there 8 slide nodes. How can I find out which one is currently being displayed without making some kind of slide counter that increments by one if you go in order. In other words I want to display a list of images so they can click on any one and have a counter displayed for them that says something like “viewing slide #5 of 8”. Is there a way to do this?
Thanks!
<Slides>
<slide>Slide 1 Here</slide>
<slide>Slide 2 Here</slide>
<slide>Slide 3 Here</slide>
<slide>Slide 4 Here</slide>
<slide>Slide 5 Here</slide>
<slide>Slide 6 Here</slide>
<slide>Slide 7 Here</slide>
<slide>Slide 8 Here</slide>
</Slides>