Script - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Script (871 Views)
1 Reply
| Script by legendmic(op): 5:11pm On Dec 27, 2013 |
<!DOCTYPE html> <html> <body> <script> function changeImage() { element=document.getElementById('myimage') if (element.src.match("bulbon" ){ element.src="pic_bulboff.gif"; } else { element.src="pic_bulbon.gif"; } } </script> <img id="myimage" onclick="changeImage()" src="pic_bulboff.gif" width="100" height="180"> <p>Click the light bulb to turn on/off the light</p> </body> </html> |
| Re: Script by legendmic(op): 5:15pm On Dec 27, 2013 |
|
134 Sites For Freelancers • C++ Tutorial Download Link • Consultant Web Programmer Needed
)