I'm having trouble making a onclick
event work. I would like to change an image of an input type image.
I did a test with a simple alert and it was not called the function either.
Here is part of my code.
<div class="bg-secund">
<input type="image" src="img<div class="bg-secund">
<input type="image" src="img%pre%.gif" id="1" onclick="click()" />
</div>
<script>
function click() {
document.getElementById("1").src = "img/0.gif ";
}
</script>
.gif" id="1" onclick="click()" />
</div>
<script>
function click() {
document.getElementById("1").src = "img/0.gif ";
}
</script>