free web hosting
|
free website
|
Business Hosting Services
|
Free Website Submission
|
shopping cart
|
php hosting
setTimeout("stopit()",stopafter*1000) } function moveBall() { if (koalaRunning == true) { calculatePosition(); if (document.all) { document.all("koala").style.left = xPos + document.body.scrollLeft; document.all("koala").style.top = yPos + document.body.scrollTop; } else if (document.layers) { document.layers["koala"].left = xPos + pageXOffset; document.layers["koala"].top = yPos + pageYOffset; } else if (document.getElementById) { document.getElementById("koala").style.left = xPos + pageXOffset; document.getElementById("koala").style.top = yPos + pageYOffset; } doit=setTimeout('moveBall()',30); } } function calculatePosition() { if (xDir == "right") { if (xPos > (xMax - ballWidth - BallSpeed)) { xDir = "left"; } } else if (xDir == "left") { if (xPos < (0 + BallSpeed)) { xDir = "right"; } } if (yDir == "down") { if (yPos > (yMax - ballHeight - BallSpeed)) { yDir = "up"; } } else if (yDir == "up") { if (yPos < (0 + BallSpeed)) { yDir = "down"; } } if (xDir == "right") { xPos = xPos + BallSpeed; } else if (xDir == "left") { xPos = xPos - BallSpeed; } else { xPos = xPos; } if (yDir == "down") { yPos = yPos + BallSpeed; } else if (yDir == "up") { yPos = yPos - BallSpeed; } else { yPos = yPos; } } if (document.all||document.layers||document.getElementById){ window.onload = initializeBall; window.onresize = new Function("window.location.reload()"); } // end hiding from old browsers -->
AlienBoy