PDA

View Full Version : Need help with jQuery Image Magnify v1.11



dayn
05-16-2011, 07:36 PM
1) Script Title: jQuery Image Magnify v1.11

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/imagemagnify.htm

3) Describe problem: i want to magnify the image on mouseover instead of clicking it. is there any way to do it ?


thanks

Luys
05-17-2011, 12:14 AM
Hi!
I think you must replace carefully all or some of "click" occurrences in the .js file (so pay attention to the new path), with a look particularly focused to "trigger.click". Try "hover" or "mouseover", for example (obviously don't do it in comments!).

Good luck!

Luys
05-17-2011, 12:56 AM
Hi!

I suddenly realized that, somehow, this activation is more problematic:
We must maintain the onclick event to close the magnified image. Otherwise with "mouseover" replacement there is a continuous loop (the image try to be opened and closed sequentially forever).

So I changed finally all (-1 :)) the occurrences of word "click" with "mouseover" but I respect the following sentence:


$clone.click(function(e){ //action when magnified image is clicked on

(You can edit the file jquery.magnifier.js with notepad if no better program at hand!)

I hope that this will have been helpful as a first approximation.

Luys