Results 1 to 3 of 3

Thread: ImageThumbnailViewerII- no click action wanted

  1. #1
    Join Date
    Dec 2008
    Posts
    18
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question ImageThumbnailViewerII- no click action wanted

    1) Script Title:
    Image Thumbnail Viewer II

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

    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?

    Thanks!

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Maybe you could do something like this:
    Code:
    <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">
    </a>
    Scroll a bit to see the addition(highlighted in blue).

  3. The Following User Says Thank You to azoomer For This Useful Post:

    nefarious2all (03-11-2011)

  4. #3
    Join Date
    Dec 2008
    Posts
    18
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Worked perfectly! Thank you!

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •