Where am I?

N

New Daddy Mosey

How would I launch an event when a certain scroll of the page is hit? For
example, pop up a window once the first 200 pixels of the page have been
scrolled off the top?

PageX/Y (and their IE equivlents) give me position in the browser.

Do Div have a position within them? (thinking make one 600 high and when you are
at 300 in it launch the event). Relative to the size of the page, not the
location on the screen.

Or I am thinking of a "marker" and when it appears within the window that
launches the action. (is there a way to say "when Div "now" is on the screen, do
X"?)

Something like:

----------
| |
| |
----------- <-- Original browser window
| |
| | <-- when they scroll to here Do whatever
| |
| | <-- when they scroll to here do something else

John Mosey |...X.|....|Brew-o-meter
"No, I don't believe in clutch. I was just trying to do my job against some
people who were very good at doing theirs, too. Small sample size."
-- Barry Bonds
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,206
Latest member
Zenden

Latest Threads

Top