// CREDITS: // Christmas Cursor Tracker // by Urs Dudli and Peter Gehrig // Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved. // Permission given to use the script provided that this notice remains as is. // Additional scripts can be found at http://www.24fun.com. // info@24fun.ch // 11/15/2000 // IMPORTANT: // If you add this script to a script-library or script-archive // you have to add a link to http://www.24fun.com/fast/index.html on the webpage // where this script will be running. // CONFIGURATION: // Visit http://www.24fun.com/fast/index.html and download the script as ZIP-file which contains // all picures as well as copy-and-paste instructions for easy installation. var step=8 var stepbasic=8 var numberofimages=8 var spacebetweenimgs=32 var x,y var flag=0 var xpos=new Array() for (i=0;i<=8;i++) { xpos[i]=-100 } var ypos=new Array() for (i=0;i<=numberofimages;i++) { ypos[i]=-100 } function handlerMM(e) { x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY flag=1 } function initiatetracker() { if (document.all) { for (i=0; i=1; i--) { xpos[i]=xpos[i-1]+spacebetweenimgs ypos[i]=ypos[i-1] } xpos[0]=x+stepbasic ypos[0]=y for (i=0; i=1; i--) { xpos[i]=xpos[i-1]+spacebetweenimgs ypos[i]=ypos[i-1] } xpos[0]=x+stepbasic ypos[0]=y for (i=0; i