mikesta707 Posted August 24, 2009 Share Posted August 24, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/171657-preform-action-when-you-scroll-over-a-specific-part-of-a-page/ Share on other sites More sharing options...
haku Posted August 24, 2009 Share Posted August 24, 2009 onmouseover Quote Link to comment https://forums.phpfreaks.com/topic/171657-preform-action-when-you-scroll-over-a-specific-part-of-a-page/#findComment-905139 Share on other sites More sharing options...
mikesta707 Posted August 24, 2009 Author Share Posted August 24, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/171657-preform-action-when-you-scroll-over-a-specific-part-of-a-page/#findComment-905171 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.