"); } function delSlide(){ prev_slide = act_slide == 1 ? max_slide : act_slide - 1; $('#slide_'+prev_slide).remove(); $('#slide_wrapper').css('marginLeft','0px'); } function slidehead(){ $('#slide_wrapper').animate({marginLeft: '-=936'}, 500, function() { act_slide = act_slide == max_slide ? 1 : act_slide + 1; delSlide(); addSlide(); }); } $(function () { addSlide(); var aktiv = window.setInterval("slidehead()", 4000); });
|
|