function imagechanger(my value)
this "myvalue" catch a value that img send as a parameter. why can't i use that myvalue insted the name of the ID
User Profile
Collapse
Profile Sidebar
Collapse
Dscript
Last Activity: Mar 16 '15, 05:19 PM
Joined: Mar 13 '15
Location:
-
how to display a picture when i click on thumbnail
...Code:<html> <head> <script> function imagechanger(myvalue) { var resultimg = document.getElementById("resultimage"); var imgsrc=document.getElementById("myvalue").src; resultimg.src=imgsrc; } </script> </head> <body> <img -
-
how to change a picture using radio button
i want the picture to be changed in side the <div> to the specific imageCode:<img src="1.jpg"> <input type="radio" name="r1" value="one"> <img src="2.jpg"> <input type="radio" name="r1" value="two"> <div> <img src=""> </div>
if i click "one"...Last edited by Rabbit; Mar 13 '15, 04:13 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
No activity results to display
Show More
Leave a comment: