Home › Forums › JavaScript › horizontal web page › Re: horizontal web page
March 24, 2013 at 9:00 pm
#129574
mdrd88
Participant
Okay let me get this straight
jQuery(function($) {
$(‘div.mousewheel_example’)
.bind(‘mousewheel’, function(event, delta) {
var dir = delta > 0 ? ‘Up’ : ‘Down’,
vel = Math.abs(delta);
$(this).text(dir + ‘ at a velocity of ‘ + vel);
return false;
});
});
Where it says “$(this)” would I write something like “animate left”?