Trying to fade one quote to another like http://jsfiddle.net/jfriend00/n4mKw/ But I just can’t see where I went wrong, can somebody lend a set of eyes please. Thanks! you can see it at www.sarahluiz.net/index2.html Here's the breakdown of what I'm working on. Javascript placed just before
</head><script type="text/javascript">
(function() {
var quotes = $(".quotes");
var quoteIndex = -1;
function showNextQuote() {
++quoteIndex;
quotes.eq(quoteIndex % quotes.length)
.fadeIn(2000)
.delay(2000)
.fadeOut(2000, showNextQuote);
}
showNextQuote();
})();</script>
HTML (I did add a div here)
<div align="center">
<h1>Hi, I'm Sarah Luiz</h1><h1 class="quote">Boy next door.</h1>
<h1 class="quote">Girl next door.</h1>
<h1 class="quote">Money.</h1>
<h1 class="quote">Kings.</h1><h1 class="quote">World Famous.</h1>
<h1 class="quote">Homeless.</h1><h1 class="quote">Back to Riches.</h1>
<h1 class="quote">Unstoppable.</h1> </div>
CSS
.quote{
display:none;
}