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