PDA

View Full Version : How to... (if possible !!)


Chris
10-15-2002, 08:51 AM
Is there a way to put 2 java applet on the same page ??

Orange
10-15-2002, 01:42 PM
yes it is.
For example:



<applet code="code/applet file" codebase="codebase" name="Applet name" alt="Alt.text" width="" height="">
</applet>

<br>

<applet code="code/applet file" codebase="codebase" name="Applet name" alt="Alt.text" width="" height="">
</applet>



or however you want to setup your page.

DCElliott
10-15-2002, 02:46 PM
The trick is making the code respond to events. A lot of java executes from the onload() event - but with two BOTH can't use the onload event. Check out some of the DHTML sites for ways to accomodate two scripts.

DE