Topic: Event "onscroll"? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10794" title="Pages that link to Topic: Event &amp;quot;onscroll&amp;quot;? (Page 1 of 1)" rel="nofollow" >Topic: Event &quot;onscroll&quot;? <span class="small">(Page 1 of 1)</span>\

 
OMERA
Bipolar (III) Inmate

From: France
Insane since: Mar 2000

posted posted 08-25-2002 18:28

Ok, here is my problem.

A long long time ago, we used to grab the onscroll event with that:

<body onscroll="...">

Now, as I am writing an XHTML STRICT document, i can't do that anymore!

So the question is: how can I capture this event in a javascript code???

window.onscroll doesn't work
window.document.onscroll doesn't work

So?? Any idea?????




OMERA ~ romantic dreamer ~

genis
Paranoid (IV) Inmate

From: Dallas, TX
Insane since: Aug 2002

posted posted 08-26-2002 04:06

there's an onscroll event?

I've never heard of that.

Must be a microsoft/iE specific thing... in which case standards don't apply so might as well do what you want.

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 08-26-2002 12:20

I don't think that there's an onscroll event either, but you can always use setInterval() to check these properties periodically to see if and how far the page has been scrolled:

IE:
document.body.scrollTop

Mozilla & Co:
window.pageYOffset

kuckus (cell #282)

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 08-26-2002 12:29

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 08-26-2002 14:36

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu