[jQuery] Re: Slide back affter slide from right to left;

2009-06-25 Thread meoluoibieng
Hi, I have done as you say, so this is the code for the left to right: [ function() { $slide1.animate( { left: parseInt($slide1.css('left'),100) == 0 ? -$slide1.outerWidth() : 350 }) } ] It get right but affter i continue click , nothing happen ( after s

[jQuery] Slide back affter slide from right to left;

2009-06-25 Thread meoluoibieng
Dear all, I'm a newbie , glad to know you, i have read the tutorial about Animate Left Margin ( http://www.learningjquery.com ): The code: [ 1. $(document).ready(function() { 2. $('#slidemarginleft button').click(function() { 3. var $marginLefty = $(this).next();