gpt4 book ai didi

javascript - Jquery Scroller 需要在到达结束后停止滚动

转载 作者:太空狗 更新时间:2023-10-29 14:19:25 26 4
gpt4 key购买 nike

我正在我的一个网站中使用滚动条。当我单击向下箭头将滚动条滚动到末尾时,到达了 10:00 PM。再次,如果我单击向下箭头,滚动条再次向上移动,整个内容消失。如果结束时间 [Here 10:00 PM] 到了,我想停止向下箭头的工作。

如果单击向上箭头,也会出现同样的问题。我们试图解决这个问题,但没有成功。

Jsfiddle 链接:http://jsfiddle.net/Xh59R/3/

附上图片。

enter image description here

提前致谢。

最佳答案

检查以下 jsfiddle 链接... http://jsfiddle.net/Xh59R/8/

点击下一步按钮..

$scrollerNextButton.click(function(e){

//PUT THESE AT END
var divMargnTop=parseInt(document.getElementById("DemoShowHide").style.top);
var divMaxTopAllowed=parseInt(-1600);
if(divMargnTop<=divMaxTopAllowed)
{
$scrollerNextButton.stop().hide("fast");
}
});

点击上一个按钮..

var divMinMargnTop=parseInt(document.getElementById("DemoShowHide").style.top);
var divMinMaxTopAllowed=parseInt(0);
if(divMinMargnTop>=divMinMaxTopAllowed)
{
$scrollerPrevButton.stop().hide("fast");
}

http://jsfiddle.net/Xh59R/8/

关于javascript - Jquery Scroller 需要在到达结束后停止滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24202360/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com