The JavaScript Source: Miscellaneous: Fly
Our web spider found the following code snippet at javascript_internet_com and contains information about atan and JavaScript.
atan(arg);
var dx = mult * step * Math.cos(alpha);
var dy = mult * step * Math.sin(alpha);
picX += dx;
picY += dy;
//Shows or hides the fly when the "button" is pressed
function showhideAnimation() {
if (ns) {

document.layers['FlyDiv'].visibility=document.layers['FlyDiv'].visibility=="hide
"?"show":"hide";

document.Button.src = document.layers['FlyDiv'].visibility=="hide"?button[1].src
:button[0].src;
}else {

FlyDiv.style.visibility=="hidden"?FlyDiv.style.visibility = "visible":FlyDiv.sty
le.visibility = "hidden";

Button.src = FlyDiv.style.visibility=="hidden"?button[1].src:button[0].src;
} // Moves the fly around the screen
function moveFly() {
// moves the fly in a new position...
calcNewPos();
if (ns) {
document.lay
Read the entire article....