changing text periodically in a span from an array with jquery
Posted
by Peter Clark
on Stack Overflow
See other posts from Stack Overflow
or by Peter Clark
Published on 2010-05-05T09:05:38Z
Indexed on
2010/05/05
9:08 UTC
Read the original article
Hit count: 284
I have a span, eg:
<p>Here is a sentence <span id="rotate">this</span> is what changes</p>
and I'd like the contents of that span to change every few moments between a list of terms, so the contents might change to be:
<span id="rotate">then</span>
<span id="rotate">thus</span>
and so on. I'd like the text to fade out and then the new text fade in.
Whats the best way to do this via jquery?
© Stack Overflow or respective owner