Below is my existing code. It successfully changes an image into another image when clicked. I need to change it so it starts off as a button that says "HINT?" on it then changes to an image. I don't wish to use an image as the button.
<!--HINT 1-->
<script lanuage="javascript">
function handleClick1(element) {
element.src="http://leowestonvfx.com/wp-content/uploads/2016/02/dirty.jpg";
}
</script>
<!--HINT 1 END-->
<img src="http://leowestonvfx.com/wp-content/uploads/2016/02/rock-hand.png" onclick="handleClick1(this);">
I thought I might be able to change it to a button like so, but it stops it working:
<input type="button" value="Hint?" onclick="handleClick1(this);">