Arbitrary Anchor
Anchor to any element on the page with a little jQuery Magic
What is jquery.arbitrary-anchor.js?
Easily create neat anchor scrolling by simply adding a jQuery/CSS selector after the hash to your page's URL. This plugin extends the normal anchor functionality: an anchor tag with a name
value attribute will still get scrolled to as normal. The same goes for an element with an id
which matches the hash. This little plugin will take care of the rest.
How to Use
Add jQuery to your page, then grab jquery.arbitrary-anchor.js and add it to your page. Note, this page here is also good example of how to use this plugin. View this page's source.
Find me on the web
Please say hello.