CSS-Plus
CSS-Plus
Play with web technologies

PlusAnchor jQuery Plugin

May 17, 2011
Attention: This article is old and the content is outdated. I've left the article here for historical purposes.

PlusAnchor is a jQuery plugin I've just created. At the moment it solves a simple and specific problem: Anchor links cause the browser scroll to the destination instead of merely jumping there.

How does it work?

It's very simple, all you need to do is link to the jQuery plugin and activate it by pasting this in your <head> section:
<script type="text/javascript" src="js/jquery.plusanchor.1.0.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$(document).plusAnchor();
});
</script>

That's it

It's a set and forget type of plugin. I've got a bunch of extra functionality I'm thinking of building in, but nothing worth talking about yet. If you have any suggestions, comments or if you find any problems let me know.

Download