Use this updated version of the script:
Attachment 3998
To use it add a data-orig attribute to the image, example:
Code:
<img class="magnify" data-orig="left" src="http://i26.tinypic.com/11l7ls0.jpg" width=125 height=90 alt="">
will expand from and be anchored to the top-left of the original image, while:
Code:
<img class="magnify" data-orig="right" src="http://i26.tinypic.com/11l7ls0.jpg" width=125 height=90 alt="">
will expand from and be anchored to the top-right of the original image. If you skip the attribute or set it to anything else the script will magnify in the usual manner (from the top left of the image to the center of the window).
Demo:
http://home.comcast.net/~jscheuer1/s...y/orig_pos.htm
Note: The data hyphen (data-orig in this case) attribute will work in any valid DOCTYPE. But it's only w3c valid in HTML 5.
Bookmarks