How do I embed text and return from the last to the first slideshow image?

Asked

Viewed 83 times

1

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

Us slideshows I haven’t been able to place my texts to accompany the photos I show. I don’t know if I put tags interspersed ids of photos or after these ids, or if the error about it is in the #texto+cont+ that I put in Javascript.

Also I cannot return from photo 9 until photo 1 that would be cont = 1 and cont +8.

1 answer

0

To go back to the first one just do (in javascript, if I’m thinking correctly):

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

I believe that also solves the problem of the text, so I understand.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.