Callback jquery.scrollview.js
I'm using the jquery Scrollview plugin (http://code.google.com/p/jquery-scrollview/) to scroll drag a div with 开发者_开发技巧overflow hidden.
My question is how I go about to get a callback function on this?
Anyone?
When are you wanting the callback function to be fired?
The plugin itself already has several events bound, for example:
.mouseout(function(){ self.stopgrab() })
.mouseup(function(){ self.stopgrab() })
Can you piggy-back on these?
Edit:
Try this for the mouseup
$('.image:eq('+examplevariable+')').scrollview({
grab:"images/openhand.cur",
grabbing:"images/closedhand.cur"
}).mouseup(function(){
alert("test mouseup");
});
The existing mouseup functionality should be preserved, and this tagged onto the end.
精彩评论