All the Codes that Fits in Tweet
- Click the
button above to fork this gist.
- Modify all the files to according to the rules and style guide below.
- Save your entry and tweet it up!
The 140byt.es site launched yet, but for now follow @140bytes on Twitter, and keep you eye on http://140byt.es.

Why not both in one function?
function(a,x,y){for(x=y=0;a;a=a.offsetParent)x+=(a.offsetLeft||0),y+=(a.offsetTop||0);return{left:x,top:y}}Anyway, the offset method is not very precise in some browsers (especially in Quirks mode). A better way to go (if available) is to use getBoundingClientRect, though this results in relative positions to the visible browser window.