SCREENSAVER - AKVARIUM

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

177
p177.html / p177.zip
Plavajuce rybicky v akvariu.
95836b
NN 4.04

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<HTML> <HEAD> <TITLE>JavaScript DESTINATION - P177</TITLE> <SCRIPT> <!-- function MoveFish(fishNumber, speed) { var fish = document.layers[fishNumber]; var vert = (Math.random() * 1000) % 5; var direction = (Math.random() * 10000) % 100; if ((speed >=0) && (fish.left > 1024)) { fish.left = -10; } else if ((speed < 0) && (fish.left < -10)) { fish.left = 1024; } else { if (direction >= 50) { fish.offset(speed, 1); } else { fish.offset(speed, -1); } } setTimeout("MoveFish(" + fishNumber + "," + speed + ")", 90); return; } function Scurry(fishNumber, speed, howMany) { var fish = document.layers[fishNumber]; var vert = (Math.random() * 1000) % 5; var direction = (Math.random() * 10000) % 100; if ((speed >=0) && (fish.left > 1024)) { fish.left = -10; } else if ((speed < 0) && (fish.left < -10)) { fish.left = 1024; } else { if (direction >= 50) { fish.offset(speed, 1); } else { fish.offset(speed, -1); } } if (howMany < 10) { setTimeout("Scurry(" + fishNumber + "," + speed + "," + (howMany + 1) + ")", 90); } else { setTimeout("MoveFish(" + fishNumber + "," + speed + ")", 90); } return; } // --> </SCRIPT> </HEAD> <BODY link="#FFFFFF" vlink="#FFFFFF" background="images/fish/water2.gif" onLoad="MoveFish(2,20);MoveFish(3,5);MoveFish(4,-8);MoveFish(5,-6);MoveFish(6,8);MoveFish(7,-1);MoveFish(8,5);"> <A NAME="dummy"></A> <LAYER NAME="0" LEFT=0 TOP=0> <IMG SRC="images/fish/rock2.gif" Height=587> </LAYER> <LAYER NAME="1" LEFT=0 TOP=310> <IMG SRC="images/fish/plant5.gif"><IMG SRC="images/fish/clear_dot.gif" width=275><IMG SRC="images/fish/coral1.gif" > </LAYER> <LAYER NAME="2" LEFT=300 TOP=300> <A HREF="#dummy" onClick="Scurry(2,20,0);"><IMG SRC="images/fish/orange_ani.gif" BORDER="0" ><IMG SRC="images/fish/bubbles_ani.gif" BORDER="0" ></A> </LAYER> <LAYER NAME="3" LEFT=600 TOP=200> <A HREF="#dummy" onClick="Scurry(3,5,-10);"><IMG SRC="images/fish/pink_fishy.gif" BORDER="0" ></A> </LAYER> <LAYER NAME="4" LEFT=900 TOP=450> <A HREF="#dummy" onClick="Scurry(4,-8,-10);"><IMG SRC="images/fish/blow_fishy.gif" BORDER="0" ></A> </LAYER> <LAYER NAME="5" LEFT=100 TOP=400> <A HREF="#dummy" onClick="Scurry(5,-6,-10);"><IMG SRC="images/fish/horse_fishy.gif" height=100 BORDER="0" ></A> </LAYER> <LAYER NAME="6" LEFT=800 TOP=300> <A HREF="#dummy" onClick="Scurry(6,8,-10);"><IMG SRC="images/fish/clown_ani.gif" BORDER="0" ></A> </LAYER> <LAYER NAME="7" LEFT=650 TOP=475> <A HREF="#dummy" onClick="Scurry(7,-1,-10);"><IMG SRC="images/fish/blue_fishy.gif" BORDER="0" ></A> </LAYER> <LAYER NAME="8" LEFT=300 TOP=50> <A HREF="#dummy" onClick="Scurry(8,5,-10);"><IMG SRC="images/fish/yellow_ani.gif" BORDER="0" ></A> </LAYER> <LAYER NAME="9" Left=75 top=310> <IMG SRC="images/fish/plant5.gif"> </LAYER> </BODY> </HTML>
[ Navrat / BACK ]