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
Post a Comment