Elastic band bullets
If you want to see a chain of bullets connected by an invisible elastic band do this:1. Register and download the files
Before downloading the program you are requested to register yourself. There is no registration fee. If you register, you are allowed to use the program as a free software, and we will inform you about future upgrades.
You can download the files either in zip or in tgz format.
2. Include elasticbullets.js from the head of your page
Insert the following line into the head of your page:
<script src="elasticbullets.js"></script>
|
You can accept the defaults or assign new values to these variables: ebimg="bullet.gif" ebHTML=null ebwidth=11; ebheight=11; ebnumdots=11 ebseglength=20 ebspringk=10 ebmass=1 ebgravity=50 ebresistance=10 ebbounce=0.75 ebzindex=5 |
4. Inser the image and start animation
Call ebwrite() from anywhere in the body of the document.
<script>ebwrite()</script>;
Or call ebwrite(x, y) to specify inital position.
<script>ebwrite(100,100)</script>;