PDA

View Full Version : Image Thumbnail Viewer II



Karlholm
08-23-2010, 05:34 PM
1) Script Title: Image Thumbnail Viewer II

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

3) Describe problem: Is there a way to show the larger image when hovering but locking the option to open the larger image when clicking on the thumbnail?

Thanks,

Mikael, Sweden

ddadmin
08-23-2010, 09:37 PM
In other words, are you asking how to show the larger image inline on the page both when the mouse hovers over or clicks on the thumbnail image?

Karlholm
08-24-2010, 12:30 AM
Yep, that would be a way to go as wall. Any tips on a solution?

ddadmin
08-24-2010, 02:27 AM
In that case, it would seem what you're really asking is just to disable the link for the thumbnail image when clicked on from navigating to somewhere. Inside the .js file, try finding the following line, and add to it the two lines in red below:


var triggerevt=s.trigger+'.thumbevt'
if (s.trigger=="mouseover"){
$anchor.click(function(e){e.preventDefault()})
}

Karlholm
08-24-2010, 04:35 AM
Thanks for helping me, really appreciate it!