We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d86e5a commit 48d587aCopy full SHA for 48d587a
1 file changed
javascript/MM_functions.js
@@ -1,3 +1,24 @@
1
+function slideSwitch() {
2
+ var $active = $('#slideshow IMG.active');
3
+
4
+ if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
5
6
+ var $next = $active.next().length ? $active.next()
7
+ : $('#slideshow IMG:first');
8
9
+ $active.addClass('last-active');
10
11
+ $next.css({opacity: 0.0})
12
+ .addClass('active')
13
+ .animate({opacity: 1.0}, 1000, function() {
14
+ $active.removeClass('active last-active');
15
+ });
16
+}
17
18
+$(function() {
19
+ setInterval( "slideSwitch()", 5000 );
20
+});
21
22
function MM_swapImgRestore() { //v3.0
23
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
24
}
0 commit comments