87,992
社区成员
发帖
与我相关
我的任务
分享
function roll(x) {
//执行前禁用点击事件?
var divHeight = $("#rollNews").height();
var top = parseInt($("#rollNews").css("top").replace("px", ""));
top += x;
if (divHeight == -top) {
top = 0;
}
$("#rollNews").animate({ top: top + "px" }, 1000, null, function () {
//动画执行完了启用点击事件?
});
}
function roll(x) {
//执行前禁用点击事件?
var divHeight = $("#rollNews").height();
var top = parseInt($("#rollNews").css("top").replace("px", ""));
top += x;
if (divHeight == -top) {
top = 0;
}
$("#rollNews").stop(true).animate({ top: top + "px" }, 1000, null, function () {
//动画执行完了启用点击事件?
});
}
stop(true)