Script - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Script (882 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 |
|
I Have An Idea Of An App To Build; But... • How Much Would You Charge For An Integration Job? • Death Sentence For Hackers: FG Sends New Cybercrime Bill To National Assembly
)