469,317 Members | 1,957 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,317 developers. It's quick & easy.

javascript on click show text and picture button changes

1
hi everyone,
i'm building a webpage showing different text for each picture. i have two columns- one column of text and another column with a row of pictures . when users click on one of the photos, that photo will turn black and white and the text that corresponds with the picture will show up in the column next to it.

does anyone know how to do this? I know it requires javascript to do this. any pointers would be very help.

thank you in advance for your time and help.

jeni
Feb 16 '12 #1
1 1436
Dormilich
8,651 Expert Mod 8TB
does anyone know how to do this?
yes.

any pointers would be very help.
you'll need to change the img's src property and you'll need some DOM access.
Feb 17 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

18 posts views Thread by Michael Skind | last post: by
19 posts views Thread by dmiller23462 | last post: by
1 post views Thread by Matt Evans | last post: by
1 post views Thread by Britney | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.