Team:UCLA/Aal/javascripttemplate

From 2014.igem.org

(Difference between revisions)
Line 12: Line 12:
     });
     });
   });
   });
 +
});
 +
function cycleImages() {
 +
    var images = $('#banner_area img'),
 +
        now = images.filter(':visible'),
 +
        next = now.next().length ? now.next() : images.first(),
 +
        speed = 1000;
 +
 +
    now.fadeOut(speed);
 +
    next.fadeIn(speed);
 +
}
 +
 +
$(function () {
 +
    setInterval(cycleImages, 1400);
});
});
</script>
</script>
</html>
</html>

Revision as of 22:51, 21 August 2014