jquery - Function on php file -


i have code got here

(function() {      var quotes = $(".quotes");     var quoteindex = -1;      function shownextquote() {         ++quoteindex;         quotes.eq(quoteindex % quotes.length)             .fadein(2000)             .delay(2000)             .fadeout(2000, shownextquote);     }      shownextquote();  })(); 

i want know how put in index php file because it's not working, know i'm working on joomla template , class quote on 1 of modules. thanks

$(function() { var quotes = $(".quotes"); var quoteindex = -1; function shownextquote() { ++quoteindex; quotes.eq(quoteindex % quotes.length) .fadein(2000) .delay(2000) .fadeout(2000, shownextquote); } shownextquote(); })();

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -