Restart fade in fade out loop text array?

I have setup a fiddle and when you press the button the terms start appearing correctly ando continue to cycle indefinitely. What should happen?

I have setup a fiddle and when you press the button the terms start appearing correctly ando continue to cycle indefinitely. What should happen? Fiddle here: jsfiddle.net/nicolapeluchetti/KwTWZ/ EDIT - if you just want to rotate once and then rotate again if you press the button, you could do: var terms = "term 1", "term 2", "term 3"; //array of terms to rotate function rotateTerm() { var ct = $("#rotate").

Data("term") || 0; if (ct == 3) { $("#rotate"). Data("term", 0) return; } $("#rotate"). Data("term", ct == terms.

Length?0 : ct + 1). Text(termsct).fadeIn(). Delay(2000).

FadeOut(200, rotateTerm); } fiddle; jsfiddle.net/nicolapeluchetti/KwTWZ/1.

Thank you for your response. I'd like to loop through the array once and then stop, but then start the loop again if the button is pressed. – tomp Jul 25 at 10:02 I updated my answer – Nicola Peluchetti Jul 25 at 10:08 Thank you for your help - much appreciated – tomp Jul 25 at 10:35 if this answer the question you should accept the answer.

– Nicola Peluchetti Jul 25 at 10:44.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions