User:M/Html training: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "<source lang="html4strict"> It is just <u>a sample</u> <br> <img src = "0.jpg" onclick = 'change ()'> <!-- <img src = "1.jpg"> <img src = "2.jpg"> <img src = "3.jpg"> <img src...")
 
 
(No difference)

Latest revision as of 09:00, 23 October 2023

<source lang="html4strict"> It is just a sample

<script>

var count=0

function change () {

   var x= document.getElementsByTagName ("img")
   count=count+1
   if (count==21) {
       count=0
      }
      x[0].src = count+ ".jpg"

}



</script>