So here's my issue, I'm using this jQuery slider code that my coworker and I manipulated so that 3 images slide at a time. It worked great till we updated our jQuery to 1.6.2 from 1.3.2 (we were going to go with 1.7.1 but now that we've encountered this problem we have to hold off). I went all the way back to 1.4.1 and it works okay but not as bad as the latest versions.
I included ALL the code. You can literally copy this whole thing into a blank page, save it and test it. It's not really working as expected right now. It doesn't slide all the way back to 1 and there's an empty slide after 9. I will work with my coworker to debug it more but I want to know why versions 1.4.3 through 1.7.1 break it.
For the record, I can use jQuery but I'm not a developer so this isn't something I'm going to figure out on my own. Thank you in advance!!
$(document).ready(function(){ /* A.D. Notes for slider controls # rightControl init is enabled from css. Need to disable rightControl if numberOfSlides is less than 3. # currentPosition is multiplies of 3. ( 3*n = 0, 3, 6, 9... ) # Disable rightControl if numberOfSlides < (currentPosition + 3) (See illustration below.) # 1 2 3 (Disable rightControl if numberOfSlides < 3; and enable if numberOfSlides >= 3) # 4 5 6 (Disable if numberOfSlides < 6; and enable if numberOfSlides >= 6) # 7 8 9 (Disable if numberOfSlides < 9; and enable if numberOfSlides >= 9) # and so on! */ var currentPosition = 1; var slideWidth = 217; var slides = $('.slide'); var numberOfSlides = slides.length; // start indexing from 0 // Remove scrollbar in JS //$('#slidesContainer').css('overflow', 'hidden'); // Wrap all .slides with #slide-inner div slides.wrapAll('<div id="slide-inner"></div>') // Float left to display horizontally, readjust .slides width .css({ 'float' : 'left', 'width' : slideWidth }); // Set #slide-inner width equal to total width of all slides $('#slide-inner').css('width', slideWidth * (numberOfSlides)); // total num of slides // Insert controls in the DOM $('#slideshow') .prepend('<span class="control" id="leftControl"> < </span>') .append('<span class="control" id="rightControl"> > </span>'); // Hide left arrow control on first load //manageControls(currentPosition); // Create event listeners for .controls clicks // If only three features, don't enable rightControl