[jQuery] Re: Passing variables between two function

2008-04-13 Thread Decagrog
Sorry for double post... Thanks , simple and works! I've almost no knowledge of javascrpit but jquery is very powerful and intuitive...i'm trying to make a sort of horizontal menu with incorporated a slide for navigate to left and right...it's essentially a trivial thing but if i can make somethin

[jQuery] Re: Passing variables between two function

2008-04-11 Thread Richard D. Worth
Declare the variable in the same scope as each of those functions is declared. For example: $(function() { var pointX; $(".nav_slider").mousemove(function(e) { ... // set pointX here ... }); $(document).scroll(function() { ...// use pointX here... }); }); - Richard Richard D. Worth htt