As with many of DD's earlier forays into jQuery, magnifier was written assuming there would be no other jQuery scripts on the page and that there might be other script libraries on the page needing the $ variable. As such, it uses the jQuery.noConflict()
directive near its beginning. However, if you're a sane person running jQuery as the only javascript library and are using two or more jQuery based scripts on the page, this causes problems. Easy solution. Using a text only editor like NotePad, in jquery.magnifier.js comment out that directive as shown:
Code:
/* jQuery Image Magnify script v1.1
* This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code
* Nov 16th, 09 (v1.1): Adds ability to dynamically apply/reapply magnify effect to an image, plus magnify to a specific width in pixels.
* Feb 8th, 11 (v1.11): Fixed bug that caused script to not work in newever versions of jQuery (ie: v1.4.4)
*/
//jQuery.noConflict()
jQuery.imageMagnify={
dsettings: {
magnifyby: 3, //default increase factor of enlarged image
duration: 500, //default dur . . .
Save and use that version.
The browser cache may need to be cleared and/or the page refreshed to see changes.
Bookmarks