jQueryUI.Ruler is a jQuery-UI plugin that adds a photoshop-like rules to a DOM element.