Results 1 to 3 of 3

Thread: Image Thumbnail Viewer II - Option for thumbnail?

  1. #1
    Join Date
    Jun 2012
    Posts
    7
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II - Option for thumbnail?

    1) Script Title: Image Thumbnail Viewer II

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

    3) Describe problem:

    Hello, This is a great little script! Thank so much!
    I have it pretty much doing exactly what I need, but I would like a little direction on figuring out how to:
    1- Have the smaller thumbnail not link to the larger image by turning it off completely
    and / or
    2- Having the option to set the url for the link (for the smaller original thumbnail). I know this can be done for the larger rollover image by using:

    rev="targetdiv:loadarea,link:http://www.MYSITE.com but I can't figure out how to do the same for the thumbnail.

    So I'm looking to add two additional options (for the thumbnail): set link to off or set link to a specific url

    My biggest concern is I'm not really sure how much this changes the core layout of the script because of the way it uses the href tag to link to the larger image.

    thanks in advanceI

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    To have it not be a link at all, add this script to the head of the page:

    Code:
    <script type="text/javascript">
    jQuery(function($){
    	$('a[rel=enlargeimage').click(function(e){
    		e.preventDefault();
    	});
    });
    </script>
    To have it be an independent link, don't do that - instead see:

    http://www.dynamicdrive.com/forums/s...58&postcount=2

    Use the modified script and link syntax presented there.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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

    doriggidy (06-11-2012)

  4. #3
    Join Date
    Jun 2012
    Posts
    7
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Fantastic! Thanks so much!

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
  •