I have created a CSS image gallery that works great when a thumbnail is hovered over. Is there any way of making it work for when you click a thumbnail as well? I have tried using a:active and this works in ie but not in Firefox. Is there any form of - easy - Javascript out there that would add on to this to support an onclick state??????
What is your current site. You will need to have <a href="thepageyouwanttogoto.theextension">image</a>. Or you can use an onclick attribute for JavaScript.
portfolio - for this css gallery, the a:active works in some web browsers (not all) until the mouse is clicked anywhere on screen and then it goes back to the default image; for some browsers it doesn't work at all. I am now wanting to design a different website for a customer using a css gallery which has a proper onclick function - with this, the onclick would be more central tot he design and not just an addon as here. - I don't want it to go to a new page, just to display a larger image when the thumbnail is clicked.
Something like this: http://www.huddletogether.com/projects/lightbox2/ ? When you click on the image a larger image opens up.
wd 2k6 - many thanks for this, but no lightbox is NOT what I am after. I want a large image to appear in a specific box and location (as per css gallery) not blanking out the screen and centred as per lightbox. Does anyone know how to do this? I'm afraid I can't write a jquery.