javascript - JQUERY slider mad -


the site http://www.quadrifoglio4.it/index.php/quadrifoglio4/gallery.html

the slide when slide 12 or 13 pics, not work fine, left value of animate set 0 , position.. code is:

ogregallerystart = window.setinterval(function(){             var ogregalleryrailcurrentposition = __jquery__('#ogrerail').position();             __jquery__('.preloadthis').css('display','none');             __jquery__('#ogrerail').animate({                 left: eval(ogregalleryrailcurrentposition.left-__jquery__('#ogrerail > .ogredrawer').eq(0).outerwidth(true))+'px'             }, 500, function(){                 var ogregalleryrailcurrentposition = __jquery__('#ogrerail').position();                 if (ogregalleryrailcurrentposition.left <= -eval(__jquery__('#ogrerail').outerwidth(true)-__jquery__('#ogrerail > .ogredrawer').eq(0).outerwidth(true))) {                     __jquery__(this).css({                         'left': '0px'                     });                 }             });         }, 4000); 

why?


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -