I've been trying to make a script to change the text of a span.
Admittedly I'm not fantastic with jQuery and have found a script. I've edited i but i cannot get the script to loop and i don't know where to even start. Any code hints or links to relevant documentation would be greatly appreciated.
Here's the jQuery so far:
function change() {
$('#msg').html(options.pop()).fadeIn(750).delay(2000).fadeOut(750, change);
};
var options = [
"Red Bull",
"Smoke",
"Babes",
"css",
"batman"
].reverse();
change();
And on jsfiddle: http://jsfiddle.net/5s8y3/214/