火球衝向滑鼠
Our web spider found the following code snippet at singwangip_uhome_net and contains information about atan2 and JavaScript.
atan2(Y,X) * 180/Math.PI);
if (angle < 0)angle += 360;
function bomb(){
if (document.layers){
Yscroll=window.pageYOffset;

ybase=Math.round(Math.random()*window.innerHeight);xbase=Math.round(Math.random(
)*window.innerWidth);
yybase=window.innerHeight-10;xxbase=window.innerWidth-10;
else if (document.all){
Yscroll=document.body.scrollTop;

ybase=Math.round(Math.random()*window.document.body.offsetHeight);xbase=Math.rou
nd(Math.random()*window.document.body.offsetWidth);

xxbase=window.document.body.offsetWidth-10;yybase=window.document.body.offsetHei
ght-10;

if ((xbase > 10 && xbase < xxbase) && (ybase > 10 &
& ybase < yybase))
bomb();
else
if ((divLeft > xpos-sp
Read the entire article....