Post: How do I get this javascript...
12-23-2012, 05:54 AM #1
primetime43
Knowledge is power Tiphat
(adsbygoogle = window.adsbygoogle || []).push({}); How do I get this javascript working. Like, to have it actually show/work the output.

    
<!DOCTYPE html>
<html>
<body>
<script>
function changeImage()
{
element=document.getElementById('myimage'Winky Winky
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>
(adsbygoogle = window.adsbygoogle || []).push({});
12-27-2012, 07:47 AM #2
Try putting the ims url instead of the name of the file you download in your pc.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo