jquery - Slider going too far -


i making slider website , have done except slider goes 1 further need. can tell me why? need left hide after has been clicked twice instead hides after click 3 times.

here link site on http://alanvitek.com/dev

here jquery

jquery(function($){     var sec = $('.portfoliowide'), secwidth = sec.width(), unit = 1040;      $(".button-next").click(function() {         var left = sec.css('left');         left = math.abs(parseint(left.substring(0, left.length - 2)))         if(left + unit >= secwidth){             $(this).hide()         }          sec.animate({left: "-=" + unit }, "slow");         $(".button-back").show();     }); 


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -