Javascript 我怎样才能做这些;“下一步”;及;“以前的”;时间轴中的按钮,使屏幕显示下一个或上一个内容,而不改变顶部的范围?

Javascript 我怎样才能做这些;“下一步”;及;“以前的”;时间轴中的按钮,使屏幕显示下一个或上一个内容,而不改变顶部的范围?,javascript,css,Javascript,Css,我需要为一些关于新冠疫情年鉴的信息制定一个水平时间表。我发现,但“下一个”和“上一个”按钮会改变顶部日期的范围,而不会改变页面内容 有人能做到这一点吗 //detect click on the next arrow timelineComponents['timelineNavigation'].on('click', '.next', function(event){ event.preventDefault(); update

我需要为一些关于新冠疫情年鉴的信息制定一个水平时间表。我发现,但“下一个”和“上一个”按钮会改变顶部日期的范围,而不会改变页面内容

有人能做到这一点吗

//detect click on the next arrow
        timelineComponents['timelineNavigation'].on('click', '.next', function(event){
            event.preventDefault();
            updateSlide(timelineComponents, timelineTotWidth, 'next');
        });
        //detect click on the prev arrow
        timelineComponents['timelineNavigation'].on('click', '.prev', function(event){
            event.preventDefault();
            updateSlide(timelineComponents, timelineTotWidth, 'prev');
        });