PDA

View Full Version : Image Thumbnail Viewer II - Option for thumbnail?



doriggidy
06-10-2012, 10:07 PM
1) Script Title: Image Thumbnail Viewer II

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

jscheuer1
06-11-2012, 12:37 AM
To have it not be a link at all, add this script to the head of the page:


<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/showpost.php?p=240158&postcount=2

Use the modified script and link syntax presented there.

doriggidy
06-11-2012, 12:45 AM
Fantastic! Thanks so much!