"The ‘imgPreview’ plugin allows your users to preview an image before
clicking on it and, out of necessity, will preload the image so when a
user does click through to it there is no waiting time!"
What this script does is adds an element to the body when you roll over
a certain object. That element's appearance is predefined with css
(positioned absolute and styled) so all we need to do is fill the
element with content, calculate mouse position and make it move
accordingly. When cursor is moved over he object, element moves with it
and when cursor roll out, the element is deleted.
Tip pulls content into a tool tip using the HttpXMLRequest object. By adding a class attribute value of “jTip” to a link element you can create a tooltip from the content found in the file the href is pointing too. Also jTip can be customized by providing user defined widths (defaults to 250px wide) via a url query string. The height is liquid and stretches to match the content that fills the tool tip. Additionally it’s possible to provide a link (via url query string) to a jTip tool tip link element (a href) so that the link will still function as expected by the user. See the Yahoo link in the demo for a working example.