diff options
Diffstat (limited to 'js/testimonials_script.js')
-rwxr-xr-x | js/testimonials_script.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/js/testimonials_script.js b/js/testimonials_script.js new file mode 100755 index 0000000..0ab8a57 --- /dev/null +++ b/js/testimonials_script.js @@ -0,0 +1,25 @@ +$(document).ready(function(){
+
+
+ $('#testimonials_front li').hide().eq(0).show();
+
+ (function showNextTestimonial(){
+
+ $('#testimonials_front li:visible').delay(12000).fadeOut('slow',function(){
+ $(this).appendTo('#testimonials_front ul');
+ if($(this).next().length > 0)
+ {
+ $(this).next().fadeIn('slow',function(){
+ showNextTestimonial();
+ });
+ }
+ else
+ {
+ $(this).siblings(':first').fadeIn('slow',function(){
+ showNextTestimonial();
+ });
+ }
+ });
+ })();
+
+});
|