By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,946 Members | 1,714 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,946 IT Pros & Developers. It's quick & easy.

javascript on click show text and picture button changes

P: 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.

Feb 16 '12 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,639
does anyone know how to do this?

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.