Jump to content

User:Ruffin' writer/Code

From Wikipedia, the free encyclopedia

<HTML><head><title>GridWork</title> <script><!-- var acell = 1; var cell2hid = 1; var Lefts = new Array; Lefts = [0, 40, 100, 20, 80, 60]; var Tops = new Array; Tops = [0, 0, 0, 20, 20, 40]; // -> Link position arrays to real content function move(){ acell += 1; if ((cell2hid=1)&&(acell == 2)) acell +=1; cur.style.left = Lefts[acell-1]; cur.style.top = Tops[acell-1]; } --></script> </head><body bgcolor=black text=white> <img src="grid1.jpg" style="position:absolute;z-index:1;top:0;left:0"> <img src="cu.gif" style="position:absolute; top:0;left:0;z-index:4;width:20;height:20" id="cur"> <div style="position:absolute;top:140;left:1;width:20;height:20;z-index:2;background:red"> <font size = 3> |+</font></div> </body></HTML>

{{{1}}}