View Full Version : Image Thumnail Viewer II

01-02-2011, 01:46 AM
1) Script Title: Image Thumbnail Viewer II

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

3) Describe problem:

I have been able to set up and use this script. But is it possible to disable the click option on this? I do not want the users to be able to click and have it open the jpg in a window. I just want them to mouseover the image. I tried using trigger:mouseover but the click is still enabled.

Thank you.

01-02-2011, 01:55 AM
Try adding onclick="return false;" to the link

01-02-2011, 04:39 AM
Better to make them all click disabled without having to edit each one. Add this highlighted code to the very top of the thumbnailviewer2.js script:


/*Image Thumbnail Viewer II (May 19th, 2010)
* This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code

//Last updated: Sept 26th, 2010: http://www.dynamicdrive.com/forums/showthread.php?t=57892


loadmsg: '<img src="spinningred.gif" /><br />Loading Large Image...', //HTML for loading message. Make sure image paths are correct

/////NO NEED TO EDIT BEYOND HERE////////////////

dsetting: {trigger:'mouseover', preload:'yes', fx:'fade', fxduration:500, enabletitle:'yes'}, //default settings
buildimage:function($, $anchor, setting){
var imghtml='<img src="'+$anchor.attr('hr . . .

01-08-2011, 03:19 PM
Thank you for the responses! The second suggestion worked just perfectly. Thank you.