Saturday, January 16, 2010

[jQuery] recursive slideshow not working

Hi, maybe anyone can give me a hand here.

Im only getting the first image to run in the slideshow, the it stops,
why?


function slide_the_slide() {
if ( no_img>img.length ) {no_img=0;}

$( '#slide_holder' ).append( $( img )[no_img] );
$( '#slide_holder .blow_up' ).css
({'opacity':'1','display':'block','position':'relative'});

$( '#slide_holder .blow_up' ).animate
({'opacity':'0','left':'-340px'},5000,'swing',function(){
no_img++;
setTimeout('slide_the_slide();', 100);
});

}

many thanks

/Pär

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate