Hi, I'm trying to make a infinite picture cycle in jQuery; I know how to do it in Javascript but cross-referencing languages would be a little bit more harder so I'm wondering if they're a way I can do this in jQuery? Here's what I've attempted to do but doesn't work :/ Any ideas? Thanks.
<script>
$.seq = function() {
$(this).fadeIn(2000);
$(this).delay(5000);
$(this).fadeOut(300, function() {
$(this).next().seq();
});
return this;
};
$(document).ready(function() {
$("#picture_main_1").seq();
$("#picture_main_2").seq();
$("#picture_main_3").seq();
$("#picture_main_4").seq();
});
</script>