Results 1 to 5 of 5

Thread: Image Thumbnail Viewer II

  1. #1
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II

    1) Script Title: Image Thumbnail Viewer II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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?
    DD Admin

  3. #3
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yep, that would be a way to go as wall. Any tips on a solution?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

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

  5. #5
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for helping me, really appreciate it!

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
  •