<script> function chg(id){ if (document.getElementById(id).src.indexOf("images/banner3.jpg")>0){ document.getElementById(id).src="images/big-logo.png" }else{ document.getElementById(id).src="images/banner3.jpg" } } </script> <img src="images/banner3.jpg" id="img_1" onClick="chg(this.id)"> Good day, with the help of this when when you click on the picture it changes to 2 and the second click back. I also need that after the first pressing, after n time, the picture is again changed to the first one.
setTimeout()- zb '22