Click to See Complete Forum and Search --> : visibility


sierra mist
10-21-2007, 03:07 AM
how would i make it so when i click on an image it makes another image visible?

NogDog
10-21-2007, 04:02 AM
An onclick attribute in the img tag that calls a JavaScript function to change the other image's display setting.

Centauri
10-21-2007, 09:04 AM
Or both images (one being hidden in the css) can be within the one anchor link, and the :focus psuedo class of the <a> can unhide the hidden image. - no javascript required then.

sierra mist
10-21-2007, 01:02 PM
i know all that stuff but how would it look in a code?

ray326
10-21-2007, 02:39 PM
We're here basically to help you write it yourself, not write it for you.

sierra mist
10-21-2007, 03:19 PM
well im sorry ive been doing this for like a day

huckle
10-22-2007, 07:30 AM
Why don't you show us what you have, then we may be able to point out any mistakes you made...