Yeah, that is what I thought at first, but still errors out when i remove the minus sign,
On 7/30/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote: > > i wonder if it is not caused by the negative value ( -208) > > looking good otherwise on FF ! > > ------------------------------ > *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Benjamin Sterling > *Sent:* lundi 30 juillet 2007 15:23 > *To:* jquery-en > *Subject:* [jQuery] Animation error and next level help > > 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 > > Ce message Envoi est certifié sans virus connu. > Analyse effectuée par AVG. > Version: 7.5.476 / Base de données virus: 269.10.23/924 - Date: 28/07/2007 > 15:50 > -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com