Cut & Paste Divviewer Image Viewer
Description: Divviewer Image viewer lets you display images inline- when the user clicks on a link- scaled to fit the dimensions of the page if necessary. This is very handy for very large images which may produce those unsightly browser scrollbars if not scaled. The sleek interface of the viewer can be customized, such as its padding, colors, the text (ie: the "X" button text), and more. Very Ajax like without the accompanied fuss!
Directions: Add the below script to the HEAD section of your page:
Then, to create a link that pops up an image when clicked on, do the following:
<a href="#" onClick="dv.showDV(pancake); return false">pancakes</a>
pancake is the variable containing the image
tag to be shown (see code in your HEAD section.
Obviously this works on image links as well.