Thursday, March 3, 2011

My first Chrome Ext: Scroll top/bottom

So today i actually got down into some code and wrote an extension for chrome that scrolls you to the top and/or bottom of the page instantly none of that slow scroll crap
using pure javascript without the magical jquery library :)
you can download it here
lets take a look the code i used

Simply created 2 Elements and populated their properties so they would stay on top and scroll with the page thanks to CSS

and i simply set their href to a javascript injection of scroll(x-axis,y-axis)

Its nothing too fancy but I find it useful for many things :)

No comments:

Post a Comment