KaisarCode Rotate is a stand-alone (not framework-dependant) library that allows the real rotation of any block or inline-block element in a Crossbrowser way. It was tested on major desktop, mobile, ...
I'm trying to find some example code to be able to rotate an image via javascript. I'm fairly sure I've seen this done before, but I can't remember where. I'm not having much luck searching via google ...