Donation
Do you like this code ? Is it worth one or two dollars ? Any donation is appreciated !
Thank you for your support :)
Source Code
<html>
<head>
<title>maze - Interactive DHTML art-demos</title>
<meta name="Author" content="Gerard Ferrandez at http://www.dhteumeuleu.com">
<meta http-equiv="imagetoolbar" content="no">
<style type="text/css">
body {cursor:crosshair;margin:0; padding:0; position:absolute; overflow:hidden; background:#000; left:0; top:0; width:100%; height:100%;}
img {position:absolute; left:0;}
</style>
<script type="text/javascript"><!--
// ////////////////////////////////////////////////////////////////////////:
// script by Gerard Ferrandez - ge1doot - July 2000
// http://www.dhteumeuleu.com
// ////////////////////////////////////////////////////////////////////////:
document.onselectstart = new Function("return false");
var object = new Array();
var xm = 0;
var ym = 0;
document.onmousemove = function(e){
if (window.event) e = window.event;
xm = (e.x || e.clientX);
ym = (e.y || e.clientY);
}
function CObj(N,img){
o = document.createElement("img");
o.src = img.src;
document.body.appendChild(o);
this.img = o.style;
this.N = N;
this.OmW = img.width/2;
this.OmH = img.height/4;
this.ddx = 0;
this.ddy = 0;
this.PX = xm;
this.PY = ym;
this.x = 0;
this.y = 0;
this.sto = "object[" + N + "].ge1doot();";
this.ge1doot = function (){
with (this) {
if(N==0){
x0 = xm;
y0 = ym;
} else {
x0 = object[N-1].x;
y0 = object[N-1].y;
}
x = PX+=(ddx+=((x0-PX-ddx*4))/10);
y = PY+=(ddy+=((y0-PY-ddy*4))/10);
img.left = x - OmW;
img.top = y - OmH;
setTimeout(sto, 16);
}
}
this.ge1doot()
}
onload = function() {
xm = document.body.offsetWidth / 2;
ym = document.body.offsetHeight / 2;
N = 80;
for(i=0;i<N;i++){
if(i==0 || i==N-1)I=document.getElementById("MP"); else I=document.getElementById("Om");
object[i] = new CObj(i,I);
}
}
//-->
</script>
</head>
<body>
<span style="visibility:hidden">
<img id="Om" src="boulGris.gif">
<img id="MP" src="boulRouge.gif">
</span>
</body>
</html>
Resource Images :
../images/boulGris.gif

../images/boulRouge.gif

Resource music/sound :
../sound/dgate439.mid
All sounds and images are credited to the respective author(s).