473,320 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1499
Dormilich
8,658 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

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

Similar topics

18
by: Michael Skind | last post by:
Hello, I use a simple Table : <TABLE> <TR 1> <TD></TD> </TR> <TR 2> <TD></TD> </TR>
12
by: who be dat? | last post by:
I'm trying to make a webpage do the following: I want a user to be able to click on a given image (there will be more than one image). Upon clicking a given image, characters specific to that...
19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
1
by: Matt Evans | last post by:
Hi, this must have been asked for before, but I cannot see it. Hopefully this is very simple. I have a form which shows everything from a table. In this table is a picture field called photo....
7
by: J-T | last post by:
I have a user control called "Test1" with two button on it ,one is input and the other one is a server control as follow: <input type="button"...
1
by: Britney | last post by:
hi, I have user picture on aspx main page, if end-user click it 100 times, then number_of_clicks will increment to 100. however, What we do right now is that everytimes a user click on the...
4
by: Elton | last post by:
Dear All, I am new to vb , please help. I have a picture , and a picture_click( ) function. What I want to do is to have a simulate a click event onto the picture in a loop. However, when I...
3
by: Greg | last post by:
I have a button on my form that I am using to allow the user to validate the contents of a certain textbox. Depending on the results of the validation, I need to change the backcolour of the text...
1
by: paratge | last post by:
Hi, I need to do a click on a picture in an iframe without using a mouse click because this iframe is not visible. Thus i wrote this : function updtframe() { strButton =...
1
by: jay123 | last post by:
hello, i m new to javascript and i think what i am trying to do cant be accomplished w/o it. i am using ajax modelpopupextender and using OnOkscript="OnOk()" . now in OnOk(), i m trying to...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.