Jump to content

Preform Action when you scroll over a specific Part of a page


mikesta707

Recommended Posts

Is there a way to do a specific action when you scroll over a specific part of a page. For example, say the user scrolls past a named anchor like below

 

<a name="top" />

 

Is there an action event I could use to call a JS function? I tried onfocus, but it didn't work.

Hmm, that more or less works, but unless the mouse is in a specific area (an admittedly large-ish area), my function won't be called. is there a way to do it based on the scroll bar position? or is onmouseover my best bet.

 

It does "work" but not with the functionality I intended.

 

 

Regardless, thank you!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.