[jQuery] Re: array problem

2008-05-27 Thread Vallard
Excellent Ariel! Thank you. Just one issue I think you had one extra } in there, but this worked perfect for me! Thank you very much! Vallard On May 27, 12:23 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote: > $(document).ready(function(){ >$('#home, #contact, #galler

[jQuery] array problem

2008-05-27 Thread Vallard
I'm trying to run the following code: var nav = [ "#home", "#contact", "#gallery", "#about" ]; $(document).ready(function(){ for(var i = 0; i < nav.length; i++){ $(nav[i]).mouseover(function(){ $(nav[i]).animate({ marginTop: "-5px" }); }