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);
-----------------------------------------------------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/greasemonkey-users/0250377e-96d6-4934-afa9-b3f3c22bc77a%40googlegroups.com.