User:M/Html training

From XPUB & Lens-Based wiki
< User:M
Revision as of 10:32, 29 September 2014 by Castrobot (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<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>