View Full Version : Attaching functions to $loadarea div

07-11-2011, 05:03 PM
1) Script Title:
Image Thumbnail Viewer II
2) Script URL (on DD):
3) Describe problem:
I'd like to attach a function to the mouseover, mouseout, and mousemove events associated with the targetdiv.... such as:

onmouseover => zoom_on(event, imagewidth, imageheight, 'url' );
onmouseout => zoom_off();
onmousemove => zoom_move(event);

The zoom functions currently work, just having troubles attaching these functions to the $loadarea div. The 'url' is the same as "this.href". Assuming that the jQuery.fn.addthumbnailviewer2 function could be modified, I'd pass in the height and width through the rev options.

Is this even remotely possible?



07-11-2011, 05:12 PM
An alternative approach, can you attach the "Image Thumbnail Viewer II" script to the image that is currently being shown in the "targetdiv". The functionality of our current zoom is somewhat similar, but the zoom that we have allows the user to increase/decrease the size of the zoomed area as well as the magnification.

07-11-2011, 05:15 PM
I meant the image power zoomer 1.1 http://www.dynamicdrive.com/dynamicindex4/powerzoomer.htm....