Use:

aObjectNames.each(function(o){$(o).setOpacity(0)});

-Thomas

Am 26.07.2006 um 08:53 schrieb G r U M P:

Hi everyone... thanks in advance for the help...

// THE CODE
aObjectNames = new Array;
for(i=0;i<35;i++){
        aObjectNames[i] = 'press_icon'+i;
}

for(i=0;i<aObjectNames.length;i++){
new Effect.Opacity(aObjectNames[i],{duration: 0,transition: Effect.Transitions.linear,from: 1.0, to: 0.0});
}

// THE PROBLEM
The array is populated with the right values... I can also insert the value directly into the Effect.Opacity statement like:

new Effect.Opacity('press_icon15', {...

But if I use it as above with the array value it breaks... I've actually seen and resolved this problem before I think but for some reason today its just killing me... any help would be greatly appreciated...

Thanks!
Owen


_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

--
Thomas Fuchs
wollzelle

http://www.wollzelle.com

questentier on AIM
madrobby on irc.freenode.net

http://www.fluxiom.com :: online digital asset management
http://script.aculo.us :: Web 2.0 JavaScript
http://mir.aculo.us :: Where no web developer has gone before




_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to