PLAVAJUCA RYBA

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

 

120
p120.html / p120.zip
Na povel ryba zacne plavat popod aj ponad prekazky.
912b
NN 4.04

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<HTML> <HEAD> <TITLE> JavaScript DESTINATION - P120 </TITLE> </HEAD> <BODY BGCOLOR="WHITE"> <LAYER NAME="bluepole" LEFT=160 TOP=150> <IMG SRC=images/bluepole.gif> </LAYER> <LAYER NAME="greenpole" LEFT=360 TOP=150> <IMG SRC=images/greenpol.gif> </LAYER> <LAYER NAME="redpole" LEFT=260 TOP=150> <IMG SRC=images/redpole.gif> </LAYER> <LAYER NAME="fish" LEFT=40 TOP=170 ABOVE="redpole"> <IMG SRC=images/fish1.gif> </LAYER> <SCRIPT> <!-- function movefish() { var fish=document.layers["fish"]; if (fish.left<400) { fish.offset(5, 0);} else {fish.left=10;} setTimeout("movefish()",10); return; } // --> </SCRIPT> <CENTER> <FORM> <INPUT type=button value="Presun rybu" OnClick="movefish();return false;"> <H4>Kliknutim na tlacitko <em>Presun rybu</em>, ryba zacne plavat. Opatovne kliknutie zvysi jej rychlost plavania. </FORM> </CENTER> </BODY> </HTML>
[ Navrat / BACK ]