[ Pobierz całość w formacie PDF ]
.Swimming Fishfunction showForm() {document.waiting.visibility="hide";document.fishlink.visibility="show";return false;}function initializeFish(){// create the backward fish image to force it to preload nowvar fish = document.fish;var fishB = document.fishB;fish.direction = "forward";fish.forwardimg = fish.document.images["fish"].src;fish.backwardimg = fishB.document.images["fishB"].src;return;}function movefish2(){ var fish = document.fish;if (fish.direction == "forward"){if (fish.left < 450) {fish.moveBy(5, 0);}else {changePoles();changeDirection();}}else {if (fish.left > 10) {fish.moveBy(-5, 0);}else {resetPoles();changeDirection();}}setTimeout("movefish2()", 10);return;}//This is a commentfunction changeDirection (){var fish = document.fish;if (fish.direction == "forward"){fish.direction = "backward";fish.document.images["fish"].src = fish.backwardimg;}else {fish.direction = "forward";fish.document.images["fish"].src = fish.forwardimg;}return;}function changePoles (){var redpole = document.redpole;var bluepole = document.bluepole;var greenpole = document.greenpole;var fish = document.layers.fish;fish.moveAbove(redpole);bluepole.moveAbove(fish);greenpole.moveAbove(bluepole);return;}function resetPoles (){var redpole = document.redpole;var bluepole = document.bluepole;var greenpole = document.greenpole;var fish = document.fish;greenpole.moveAbove(bluepole);fish.moveAbove(greenpole);redpole.moveAbove(fish);return;}Please wait while the fish loads.Fish Example 2
[ Pobierz całość w formacie PDF ]