Viewing Quotes Stopped Working

Quotes Stopped Working



User: Les C. 8 years ago
Any ideas why?


Header:

<style type="text/css">
.quotes {display: none;}
p.quotes {font: 15px 'Alice', serif;color:#666666;margin:0; padding: 0;
text-align: center}
</style>


Footer:

<script type="text/java script">
(function() {
var quotes = $(".quotes");
var quoteIndex = -1;
function showNextQuote() {
++quoteIndex;
quotes.eq(quoteIndex % quotes.length)
.fadeIn(900)
.delay(3000)
.fadeOut(900, showNextQuote);
}
showNextQuote();
})();
</script>


HTML (snippet):

<p class="quotes"></p>
<p class="quotes">Contact us</p>
<p class="quotes"></p>
<p class="quotes"></p>
<p class="quotes">Contact us</p>
<p class="quotes"></p>
<p class="quotes"></p>
<p class="quotes">Contact us</p>
<p class="quotes"></p>



Thanks,

L C

Last edit 8 years ago
User: Roddy 8 years ago
Works OK for me if I add a link to jQuery...

<script type="text/java script" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

I take it the error in the script type is caused by the forum and not you? I'm referring to the space between java and script.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
✔ Best Answer  
User: Les C. 8 years ago
--Roddy

Many thanks. I'm up again!


L C
User: Les C. 8 years ago
    

Last edit 8 years ago


Post Reply
You must login or signup to post.