Monday 12 May 2008

XHTML 1.0 Strict Java Applets

While coding a program for a college submission, I spent ages trying to get the page to validate as XHTML 1.0 strict. I eventually came across Shayne Steele's webspace (link no longer working) at Florida State's computer science department which has this page that explains the various parts required by the object tag.

Check out Shayne's page ot just copy and paste the code below. all you need to change is the Class name and the height and width of the applet/object.


<object type="application/x-java-applet"
height="500"
width="500"
classid="java:YourClassName.class">
<!--[if IE]>-->
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
height="500"
width="500"
codebase="data"
type="application/x-java-applet">
<param name="code" value="YourClassName">
</object>
<!--<![endif]-->
</object>

No comments: