在选择菜单上循环滚动条 [英] Loop the scrollbar on a select menu
本文介绍了在选择菜单上循环滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到了这个
I saw this
$('document').ready(function() {
$(document).scroll(function(){
if(document.documentElement.clientHeight +
$(document).scrollTop() >= document.body.offsetHeight )$(document).scrollTop(0);
});
});
我想知道我是否可以将其更改为仅在我的选择元素中循环滚动条?
像这个网站对整个网站做了但....只有我选择的元素元素
提前致谢:3
And I was wondering if I can get it changed to loop the scrollbar only in my select element?
Like THIS site does with the whole site but.... only with the element select element that I have
Thanks in advance :3
推荐答案
(' document')。ready( function (){
('document').ready(function() {
( document )。scroll( function (){
if ( document .documentElement.clientHeight +
(document).scroll(function(){ if(document.documentElement.clientHeight +
( document )。scrollTop()> = document .body.offsetHeight)
(document).scrollTop() >= document.body.offsetHeight )
这篇关于在选择菜单上循环滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文