Hey guys,
I’m kind of a noob when it comes to jquery, so my problem is that i cant get this simple slider to work on jQuery 1.7.1 (newest) Anyway if some of you pros can take a lokk at it for me and see whats wrong, I would be very happy!
I think the problems is within the last function: setInterval(function(){
$(document).ready(
function slideSwitch() {
var $active = $('#slideshow IMG.active');
if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
var $next = $active.next().length ? $active.next()
: $('#slideshow IMG:first')
$active.addClass('last-active');
$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 1000, function() {
$active.removeClass('active last-active');
});
}
setInterval(function() {
slideSwitch();
}, 5000 );
);