View Full Version : Image Thumbnail viewer II link problem
Steve
12-22-2005, 11:15 PM
I have the link option set to "". When I click on a thumbnail, it takes me to a fresh view of the page I'm on. I don't want to link to anything. I just want the onMouseover event to display the larger image.
URL: http://oregonmotorcyclist.com/ridepage.php?page=hwy19
jscheuer1
12-23-2005, 03:36 AM
That was a good move but, that only prevents the large versions of each image from being linked. Where you have:
<A HREF="#"
onmouseover="modifyimage('dynloadarea', 0)"><IMG
SRC="../images/tn_hwy19_01.jpg" BORDER=0 ALIGN=bottom></A>
and similar for each thumbnail image, that makes each one of them a link to the top of the page. There are a number of ways around this, the easiest is to change the href to javascript:void(0); - example:
<A HREF="javascript:void(0);"
onmouseover="modifyimage('dynloadarea', 0)"><IMG
SRC="../images/tn_hwy19_01.jpg" BORDER=0 ALIGN=bottom></A>
Steve
12-23-2005, 09:46 PM
That was a good move but, that only prevents the large versions of each image from being linked. Where you have:
<A HREF="#"
onmouseover="modifyimage('dynloadarea', 0)"><IMG
SRC="../images/tn_hwy19_01.jpg" BORDER=0 ALIGN=bottom></A>
and similar for each thumbnail image, that makes each one of them a link to the top of the page. There are a number of ways around this, the easiest is to change the href to javascript:void(0); - example:
<A HREF="javascript:void(0);"
onmouseover="modifyimage('dynloadarea', 0)"><IMG
SRC="../images/tn_hwy19_01.jpg" BORDER=0 ALIGN=bottom></A>
Thanks a lot! That did it. Not only is Dynamic Drive a great resource for free code, it is a great place to learn.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.