posted 17 years ago
Hi,
Several years ago (2004) I placed an applet on out my webpage. It worked with most browsers back then. Today, that applet works fine in IE6 and Firefox, but does not load at all in IE7. Do I need to update how the applet is embedded? Here is the code snippet:
<!--"CONVERTED_APPLET"-->
<!-- HTML CONVERTER -->
<SCRIPT language="JavaScript"><!--
var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
//--></SCRIPT>
<COMMENT>
<SCRIPT language="JavaScript1.1"><!--
var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
//--></SCRIPT>
</COMMENT>
<SCRIPT language="JavaScript"><!--
if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 1 HEIGHT = 1 codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"><NOEMBED><XMP>');
else if (_ns == true && _ns6 == false) document.writeln('<EMBED type="application/x-java-applet;version=1.4" CODE = "AdMakerApp.AdMakerApp.class" ARCHIVE = "AdMakerApp.jar" WIDTH = 1 HEIGHT = 1 pw ="go571"/ scriptable=false pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED><XMP>'); //--></SCRIPT>
<APPLET code = "AdMakerApp.AdMakerApp.class" archive = "AdMakerApp.jar" width = 1 height = 1></XMP>
<PARAM name = CODE value = "AdMakerApp.AdMakerApp.class" >
<PARAM name = ARCHIVE value = "AdMakerApp.jar" >
<PARAM name="type" value="application/x-java-applet;version=1.4">
<PARAM name="scriptable" value="false">
<PARAM name = "pw" value="demo"/>
</APPLET>
</NOEMBED>
</EMBED>
</OBJECT>
<!--"END_CONVERTED_APPLET"-->