0
我已經使用jQuery Scrollbox。它在當地工作良好,但不在生產中工作。腳本不工作jQuery滾動條
這裏是我的代碼的jQuery
$(function() {
$('#demo').scrollbox({
linear: false, // Scroll method
startDelay: 2, // Start delay (in seconds)
delay: 2, // Delay after each scroll event (in seconds)
step: 5,// Distance of each single step (in pixels)
speed: 32, // Delay after each single step (in milliseconds)
switchItems: 1, // Items to switch after each scroll event
direction: 'scrollLeft',
distance: 'auto',
autoPlay: true,
onMouseOverPause: true,
paused: false,
queue: null
});
});
$(function() {
$('#demo1').scrollbox({
linear: false, // Scroll method
startDelay: 3, // Start delay (in seconds)
delay: 2, // Delay after each scroll event (in seconds)
step: 5,// Distance of each single step (in pixels)
speed: 32, // Delay after each single step (in milliseconds)
switchItems: 1, // Items to switch after each scroll event
direction: 'scrollLeft',
distance: 'auto',
autoPlay: true,
onMouseOverPause: true,
paused: false,
queue: null
});
});
其完全卡住。如何解決這個問題?
在實時環境中訪問時檢查控制檯錯誤消息。 – abc
其工作正常..沒有錯誤 –
我檢查了您提供的鏈接,並查看錯誤消息的控制檯。似乎沒有jQuery的參考。仔細檢查你的jQuery庫。 – abc