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
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
2 matches
Mail list logo