0
HiJackInternalLinks僅適用於每頁一個可滾動的div。當我使用2個可滾動的div時,滾動條即將消失,當滾動到鼠標滾輪時,它會跳回到開始位置。你可以在這裏看到它http://testserver.ihrcms.de/flammenmehr/vita.php?id=68使用下面的代碼更多來源鏈接源代碼,感謝您的期待!jquery jscrollpane劫持具有2個可玩的內部鏈接
$(function() {
// initialize scrollable
$(".scrollable").scrollable();
});
jQuery(document).ready(function($){
var resize_handler = function(){
$('.item').css('width', String(parseInt($('body').width()))+'px');
};
$(window).resize(resize_handler);
resize_handler();
});
$(function()
{
$('#left').jScrollPane({
showArrows: true,
hideFocus: true,
horizontalGutter: 30,
verticalGutter: 30,
verticalDragMinHeight: 66,
verticalDragMaxHeight: 66,
horizontalDragMinWidth: 50,
horizontalDragMaxWidth: 50,
hijackInternalLinks: true,
mouseWheelSpeed: 5,
arrowButtonSpeed: 5 });
});
$(function()
{
$('#right').jScrollPane({
showArrows: true,
hideFocus: true,
horizontalGutter: 30,
verticalGutter: 30,
verticalDragMinHeight: 66,
verticalDragMaxHeight: 66,
horizontalDragMinWidth: 50,
horizontalDragMaxWidth: 50,
hijackInternalLinks: true,
mouseWheelSpeed: 5,
arrowButtonSpeed: 5 });
});