Click to See Complete Forum and Search --> : <object> help


Sir Sapo
02-25-2004, 11:05 PM
I tried to put an applet on my site using the old <applet> tag and it didn't work, so i am now trying to use the object tags. I have sample code but i dont know what to do to it to make it work for my applet.

my applet class is called guidedmissile.class

Any help would be great.

Here is the code example:

<OBJECT CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" CODEBASE="http://java.sun.com/products/plugin/autodl/jinstall-1_4_1_02-windows-i586.cab#Version=1,4,0,0" WIDTH="500" HEIGHT="500">
<PARAM NAME="code" VALUE="guidedmissile.class">
<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4.1">
<EMBED PLUGINSPAGE="http://java.sun.com/webapps/getjava/BrowserCheck" TYPE="application/x-java-applet;jpi-version=1.4.1" CODE="guidedmissile.class" WIDTH="300" HEIGHT="200">
<NOEMBED>
<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4.1">
No Java 2 Support For APPLET!
</APPLET>
</NOEMBED>
</EMBED>
</OBJECT>

cjard
02-26-2004, 04:13 AM
click the JAR tutorial link in my sig, and read it fully... it will tell you how to best package your java app, and gives html for best compatibility with all browsers