Door het scherm zwevende E
Our web spider found the following code snippet at www_xs4all_nl and contains information about atan2 and JavaScript.
atan2(Y,X)*180/Math.PI);
if (angle < 0) angle += 360;

y = Math.round(speed*Math.sin(angle*Math.PI/180));x = Math.round(speed*Math.cos(
angle*Math.PI/180));
dy+=y;dx+=x; 

if ((dy > my-speed*2) && (dx > mx-speed*2) && (dy < my+
speed*2) && (dx < mx+speed*2))
{clearTimeout(tmr);layer.visibility=off;}
else{layer.visibility=on;layer.top=dy;layer.left=dx}
tmr=setTimeout('stalk()',10);
stalk();
//-->
</script> 
Terug naar Index
Read the entire article....