I have uploaded my code again and again, and I just donβt understand why it does not work correctly ...
Can someone enlighten me? What is the problem here? I just don't see it.
The code should allow the user to enter various values ββin the text fields to change some functions of the image, such as border size, color, width, height, image text and image name.
This is my code:
<html> <head> <title>Image Properties</title> <script type="text.javascript"> function changeImage() { </script> </head> <body> <h2>Change Image Properties</h2> <img src="KotakuLogo.jpg" id="img" /> <p> Border Size:<input type="text" id="bs" onfocus="this.style.background='#c3c3c3'" onblur="this.style.background='#FFFFFF'"/><br /> New Border Color:<input type="text" id="bc" onfocus="this.style.background='#c3c3c3'" onblur="this.style.background='#FFFFFF'"/><br /> New Border Width:<input type="text" id="bw" onfocus="this.style.background='#c3c3c3'" onblur="this.style.background='#FFFFFF'"/><br /> New Border Height:<input type="text" id="bh" onfocus="this.style.background='#c3c3c3'" onblur="this.style.background='#FFFFFF'"/><br /> New Border Alt Tag:<input type="text" id="ba" onfocus="this.style.background='#c3c3c3'" onblur="this.style.background='#FFFFFF'"/><br /> New Border Title:<input type="text" id="bt" onfocus="this.style.background='#c3c3c3'" onblur="this.style.background='#FFFFFF'"/><br /> <input type="button" value="Submit Image Changes" onclick="changeImage()" /> </body> </html>
source share