JavaScript Swimming Fish

This JavaScript code example displays a JavaScript swimming fish in your browser window. When the fish hits a wall he 'turns' around and goes the other way.

This JavaScript swimming fish script is very easy to setup and it works perfectly on modern browsers such as Opera, Firefox, Chrome, Safari.

And you can also change the picture of fish by others if you want easily. But this is swimming fish animation, you may check JavaScript Swimming Fish Backgrounder if you need background swimming fish JavaScript effect.




Over 2000+ free Javascript
at JavaScriptBank.com Website

Instructions:



1: Copy and paste the following javascript tag just before the end of the BODY section of your page:
Select all...


2: Upload both fish graphics and the fish.js file to your server.


3: Edit the js file and change the settings near the top of the script. You can change the fish graphics and how the fish "behaves".