Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Onclick for CSS Image Gallery
Old 11-11-2009, 08:04 AM Onclick for CSS Image Gallery
jj1
Extreme Talker

Posts: 150
Trades: 0
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??????
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jj1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-11-2009, 10:13 AM Re: Onclick for CSS Image Gallery
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Well, after giving it some thought I would suggest that you use the onclick event.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-11-2009, 11:00 AM Re: Onclick for CSS Image Gallery
jj1
Extreme Talker

Posts: 150
Trades: 0
Quote:
Well, after giving it some thought I would suggest that you use the onclick event
I thought the onclick event applied to buttons? Can you use it to make a larger image appear ON THE SAME PAGE when a thumbnail is clicked?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jj1 is offline
Reply With Quote
View Public Profile
 
Old 11-11-2009, 11:11 AM Re: Onclick for CSS Image Gallery
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The onclick event applies to ALL visual elements

This uses a rollover but can be a onclick instead http://www.modtalk.co.uk/_site/code/...oll-over-tabs/ (self promo link drop)
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Onclick for CSS Image Gallery
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18540 seconds with 12 queries