Modifier l'image du bouton onclick

J'ai ce code pour modifier à partir de l'image 1 à l'image 2. Comment puis-je la faire changer d'image 2 image 3, et à l'arrière à l'image 1? Grâce

<!DOCTYPE html>
<html>
<body>

<button onclick="myFunction()"><img id="myImg" src="image1.gif" width="107"     height="98"></button>

<script>
function myFunction()
{
document.getElementById("myImg").src="image2.gif";
}
</script>

</body>
</html>
InformationsquelleAutor Thomas | 2014-05-04