Complete noob here. I’m simply making a page that displays image1. When the visitor clicks image1, the code needs to replace it with image2. I’ve searched hours on the web(including this forum) and haven’t been able to figure this out. Helps greatly appreciated!
Here’s my code:
[CODE]<html>
<head>
<script type=”text/javascript”>
function image()
{
document.getElementById(“changeimage”).innerHTML=”http://howimetyourotaku.files.wordpress.com/2011/05/ultimate-rage-face.jpg”;
}
</script>
</head>
<body id=”changeimage”>
<img src=”http://i3.kym-cdn.com/entries/icons/original/000/004/077/Raisins_Face.jpg” onClick=”image();”>
</body>
</html>