MediaWiki:Skin/Bewegung.js

var plist = [];

function initTag(t) { var elist = document.getElementsByTagName(t); for (var i=0; i CORRECT) offset_left = -1;

if (top < -CORRECT) offset_top = 1; else if (top > CORRECT) offset_top = -1;

p.style.left = (left + random + offset_left) + "px"; p.style.top = (top + random + offset_top) + "px"; }

function run { for (var j=0; j<plist.length; j++) {   move(plist[j]); } }

addOnloadHook( function {  initTag("P");  initTag("LI");  initTag("H1");  initTag("H2");  initTag("H3");  initTag("A");  window.setInterval(run,150); });