How can I Embed texts and return from the last one to the first slideshow image? [closed]

1

I have 9 images and are to be shown in a slide , with button mousein , mouseout , Loading , Z-index . So far so good, CSS is right.

In slideshows I have not been able to put my texts to follow the photos I show. I do not know if I put tags by merging ids from photos or after these ids , or if the error about it is in #texto+cont+ JavaScript.

I also can not return from photo 9 to photo 1 which would be cont = 1 and cont +8 .

    
asked by anonymous 15.11.2014 / 14:22

1 answer

0

To go back to the first one just do (in javascript if I'm thinking correct):

cont++; // incrementa cont
if(cont == 9) {
    cont = 1;
};

I think this also solves the text problem, so I understand.

    
11.12.2014 / 10:13