Connecting Tech Pros Worldwide Forums | Help | Site Map

Hiding a picture

Newbie
 
Join Date: Aug 2007
Posts: 1
#1: Aug 15 '07
I want to have a picture that remains hidden until I click on a link.
I don't know how to do this please help!

Thanks!

/MI

Newbie
 
Join Date: Jul 2008
Posts: 1
#2: Jul 31 '08

re: Hiding a picture


Hi,

There are many ways this can be done.

1. JavaScript - You can use a onmouseclick event
2. CSS - This will work as a hover rather than a click event

Hope this helps.

TheCSSKing
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,574
#3: Jul 31 '08

re: Hiding a picture


CSS can do this if you make it visible using a:visited and making the href reference itself but you can't make it invisible and going off page can make it reset.
tharden3's Avatar
Site Addict
 
Join Date: Jul 2008
Location: Ocala, FL (United States)
Posts: 817
#4: Jul 31 '08

re: Hiding a picture


Quote:

Originally Posted by TheCSSKing

Hi,

There are many ways this can be done.

1. JavaScript - You can use a onmouseclick event
2. CSS - This will work as a hover rather than a click event

Hope this helps.

TheCSSKing

I could be wrong, but I've heard that hover is not supported by IE????
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#5: Jul 31 '08

re: Hiding a picture


Hover is supported for a link and is supported for other elements too in IE7 Strict mode.
tharden3's Avatar
Site Addict
 
Join Date: Jul 2008
Location: Ocala, FL (United States)
Posts: 817
#6: Jul 31 '08

re: Hiding a picture


Quote:

Originally Posted by acoder

Hover is supported for a link and is supported for other elements too in IE7 Strict mode.

oh, alrighty. I wasn't sure......
Reply