2
是否有滚动的方式使用光标的位置一个div?JQuery的 - 滚动DIV使用光标位置
演示用JavaScript制作:http://scripterlative.com/files/cursordivscroll.htm
感谢。
是否有滚动的方式使用光标的位置一个div?JQuery的 - 滚动DIV使用光标位置
演示用JavaScript制作:http://scripterlative.com/files/cursordivscroll.htm
感谢。
好,如果你会使用jQuery插件http://flesler.blogspot.com/2007/10/jqueryscrollto.html高于一切皆有可能。
不知道你想要达到的实际效果,但如果我想象的权利,你可能要在底部 http://www.fredrikclement.com/#/series/selected/Redbull 如果是做这样的事情的图像预览滑块,不仅仅是检查鼠标位置当它在那个特殊的div上时。 使用类似的东西:
$('div').mousemove(function(e){
var mouse_x = e.pageX,
mouse_y = e.pageY;
// here goes calculation code where you will decide how much to you want to
// scroll the div, basically plugin works with target, so you might need to create
// reference object with absolute position and change its position before you
// you can scroll
});
滚动到你提供,你会清楚地看到该链接页面的底部:*“下载说明和源代码” * – 2012-03-10 16:52:21