Hi,
I need a script to auto scroll a time schedule witch is part of a website.
The Idea is to have a Web application running where the people can see a time schedule.
It has to scroll down and up and sometimes refresh the page.
For normal webpages I created these script, witch is scrolling. But it is not working on pages that are more like an app, like the google calendar.
How can I move a scroll bar in a page not of the window?
As attachment i add a Picture of the web application I want to manipulate.
That is my Script, witch is scrolling normal webpages up and down.
-----------------------------------------------------------------------------------------------------------------------
var pos = 0 //Koordinaten Variable
var richtung = 0 //0= Runter, 1= Hoch
var gschwindigkeit = 20 //Je größer der wertz umso langsamer
var weite = 5 //Schrittweite pro Durchgang
function scrollen(){
//Hauptfunktion
window.scrollTo({
top: pos,
left: 0,
behavior: 'smooth'
});
//Richtungswechsel und nächste Koordinate
//Nach unten
if(richtung == 0){
if(scrollY == scrollMaxY)
richtung = 1;
else
pos=pos+weite;
}
//Nach oben
if(richtung == 1){
if(pos <= 0)
richtung = 0;
else
pos=pos-weite;
}
}
setInterval(scrollen, gschwindigkeit);
-----------------------------------------------------------------------------------------------------------------------