User:ThomasW/Protoyping300914: Difference between revisions
(Created page with "The idea was to make a website that show a images that gets more glitchy for the more you click on the image. <script> var i = 1 function change () { x= document.getElements...") |
No edit summary |
||
Line 1: | Line 1: | ||
The idea was to make a website that show a images that gets more glitchy for the more you click on the image. | The idea was to make a website that show a images that gets more glitchy for the more you click on the image. | ||
< | --> | ||
<sc ript> | |||
var i = 1 | var i = 1 | ||
function | function cha nge () { | ||
x= document.getElementsByTagName ("img") | x= document. getElementsByTagName ("img") | ||
x[0].src = "TNMOC_"+i+".jpg" | x[0].src = "TNMOC_"+i+".jpg" | ||
i=i+2 | i=i+2 | ||
if (i==21) {i=0}; | if (i==21) {i=0}; | ||
} | } | ||
</ | </scri pt> | ||
< | <im g src = "TNMOC_0.jp g" onclick ='change ()'> | ||
<!-- | |||
[[File:Http://pzwart3.wdka.hro.nl/wiki/File:TNMOC 3.jpg|thumbnail]] | [[File:Http://pzwart3.wdka.hro.nl/wiki/File:TNMOC 3.jpg|thumbnail]] |
Revision as of 17:58, 2 October 2014
The idea was to make a website that show a images that gets more glitchy for the more you click on the image.
--> <sc ript> var i = 1 function cha nge () { x= document. getElementsByTagName ("img") x[0].src = "TNMOC_"+i+".jpg" i=i+2 if (i==21) {i=0}; } </scri pt> <im g src = "TNMOC_0.jp g" onclick ='change ()'>