summaryrefslogtreecommitdiff
path: root/js/testimonials_script.js
blob: 0ab8a5786b703ec02c0aeda72687dfd1ae907519 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
					});
				}
		});
	})();
	
});