Html training: Difference between revisions
(Created page with "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 = "4.jpg"> <img src = "5.jp...") |
No edit summary |
||
Line 1: | Line 1: | ||
<source lang="html4strict"> | |||
It is just <u>a sample</u> <br> | It is just <u>a sample</u> <br> | ||
<img src = "0.jpg" onclick = 'change ()'> | <img src = "0.jpg" onclick = 'change ()'> |
Revision as of 16:41, 26 September 2014
<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>