View Full Version : ImageThumbnailViewerII- no click action wanted

03-10-2011, 08:50 PM
1) Script Title:
Image Thumbnail Viewer II

2) Script URL (on DD):

3) Describe problem:
I have the script working nicely, but I want to change one thing.
When the person rolls over the thumbnail the image fades in to the targeted <div>, but also, if the person decides to click the thumbnail the image comes up in a new window. I don't want the person to be able to click the thumbnail to bring up a new window with the image in it.
All I need is the roll over effect.

How do you delete/remove the click action?


03-11-2011, 12:46 AM
Maybe you could do something like this:

<a title="Nothing better than relaxing on the sofa sometimes" rev="targetdiv:loadarea" rel="enlargeimage" href="../dynamicindex17/sofagirllarge.jpg" onclick="return false;">
<img width="91" height="61" border="0" src="../dynamicindex17/sofagirl.jpg">
Scroll a bit to see the addition(highlighted in blue).

03-11-2011, 05:11 PM
Worked perfectly! Thank you!

I'm familiar with onclick, but probably wouldn't have figured out "return false;". Sooo much coding out there!