Guys, I am working on a plugin and having two issues: url in quesiton; http://www.benjaminsterling.com/experiments/neurosesgalore/ js file in question: http://www.benjaminsterling.com/experiments/neurosesgalore/common/js/i.js
Question 1: As it stands now, I have below in a click event: var $this = $(this); $this.animate({'left':-208,'top':15}, s.speed, function(){ var cur = elArray.shift(); elArray.push(cur); for ( var i = 0; i <elArray.length; i++ ) { $(elArray[i]).css('z-index', String( elArray.length-i)); }; $this.animate({ 'left':0, 'top':0 },s.speed); }); And it works in Firefox, but in IE6 I am getting an "Invalid argument" error, which I had broken done to being this part of the code: $this.animate({'left':-208,'top':15}, I changed to: $this.animate({'left':'-208','top':'15'}, and still the same error. Question 2: I want to make the above code more dynamic, I am allowing for a option to be passed in to change the direction of the animation, but when I do: newDirection = 'left'; $this.animate({newDirection:-208,'top':15}, It left animation does not work at all. Any help and direction would be very helpful. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com