The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Thumbnail gallery swap image question
stlredbird
post Mar 13 2010, 05:04 PM
Post #1





Group: Members
Posts: 5
Joined: 10-March 10
Member No.: 11,335



I have a gallery and for each thumb I have 2 images. I need to be able to switch that image in a kind of hover/current type of thing except when I click on the thumbnails they don't go to a new page they open up a larger image on that same page.

I know how to swap the thumb when I mouseOver or mouseDown, but how do I make sure that the thumb resets to the default or mouseUp image when I click on another thumbnail?

Thanks
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Mar 15 2010, 02:42 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



I suppose you set the larger image as the HREF of the <a> tag. If you want to open that image in a new window, you can use the TARGET attribute. See http://htmlhelp.com/reference/html40/special/a.html.

Or you could use Lightbox, which covers the page with a transparent "layer" containing the lareger image. See http://www.huddletogether.com/projects/lightbox2/.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 04:52 AM