Demo entry 6641220

51

   

Submitted by anonymous on Sep 16, 2017 at 14:52
Language: JavaScript. Code size: 346 Bytes.

<script>
function changeImage()
{
	element=document.getElementById('myimage')
	if (element.src.match("bulbon"))
 	{
  		element.src="/images/pic_bulboff.gif";
  	}
	else
   {
  		element.src="/images/pic_bulbon.gif";
   }
}
</script>
<img id="myimage" onclick="changeImage()"
src="/images/pic_bulboff.gif" width="100" height="180">

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).