TO DO - UizeSite.Page.Doc
1. Animated Scrolling Behavior
what to wire the event on (document.body or document.documentElement?) | |
how to cancel the event | |
how to know that the thing being clicked is a link that is an anchor link | |
calculate the position of the anchor | |
scroll the document to the positio | |
set the document location to the anchor |
1.1. - have a timeout that watches on changes in the href
if the anchor changes, scroll the position to the current anchor minus clearance amount |
2. Issues
IE7 has a stupid issue where the getAttribute DOM method doesn't return the value from the document, but returns a resolved value, and for href for anchor links this contains the entire URL path, not just the anchor part |