开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜