How to link to Collisions

There are a few ways to link to the applet. First, you could just put a link to the page on our server. The URL is http://www.phys.virginia.edu/classes/109N/more_stuff/Applets/Collision/jarapplet.html

Another option is to make your own web page on your server that loads the applet. An example follows.

<HTML><HEAD><TITLE>Two-dimensional collisions</TITLE></HEAD><BODY>
<P align=CENTER>
Put your own explanation or class lecture on this page.
<applet codebase="http://galileo.phys.virginia.edu/~ajd2m/applets/" code="CollisionApplet.class" archive="collision.jar" width=550 height=400>
This is a Java 1.1 applet demonstrating 2D collisions.
</applet><br>
<A HREF="http://www.phys.virginia.edu/classes/109N/more_stuff/Applets/Collision/applet.html">About</A>
</body></html>

Lastly, you can download the applet to your own server. Just download the jar file and change the codebase tag in the HTML page so it points to your local directory. If the HTML page is in the same directory as the jar, it would look as follows.

<HTML><HEAD><TITLE>Two-dimensional collisions</TITLE></HEAD><BODY>
<P align=CENTER>
Put your own explanation or class lecture on this page.
<applet codebase="." code="CollisionApplet.class" archive="collision.jar" width=550 height=400>
This is a Java 1.1 applet demonstrating 2D collisions.
</applet><br>
<A HREF="http://www.phys.virginia.edu/classes/109N/more_stuff/Applets/Collision/applet.html">About</A>
</body></html>