Hello
Cut Paste the following code in Your HTML file.and replace the name of the
class files and the jar flie.
My class file name is = MainScreen.class
and jar file name is .= theGame3D.jar
Hope it helps. This code runs on both IE and Netscape.
fahad
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.0 -->
<SCRIPT LANGUAGE="JavaScript"><!--
var _info = navigator.userAgent; var _ns = 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)));
//--></SCRIPT></COMMENT>
<SCRIPT LANGUAGE="JavaScript"><!--
if (_ie == true) document.writeln('<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 450 HEIGHT =
315 NAME = theGame ALIGN = middle VSPACE = 0 HSPACE = 0
codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Ver
sion=1,2,0,0"><NOEMBED><XMP>');
else if (_ns == true) document.writeln('<EMBED
type="application/x-java-applet;version=1.2" java_CODE = MainScreen
java_CODEBASE = "." NAME = theGame ARCHIVE="theGame3D.jar" WIDTH = 450
HEIGHT = 315 ALIGN = middle VSPACE = 0 HSPACE = 0
pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html"><
NOEMBED><XMP>');
//--></SCRIPT>
<APPLET CODE = MainScreen CODEBASE = "." WIDTH = 450 HEIGHT = 315 NAME =
theGame ALIGN = middle VSPACE = 0 HSPACE = 0 ></XMP>
<PARAM NAME = CODE VALUE = MainScreen >
<PARAM NAME = CODEBASE VALUE = "." >
<PARAM NAME = NAME VALUE = theGame >
<PARAM NAME = ARCHIVE VALUE = theGame3D.jar >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.2">
</APPLET>
</NOEMBED></EMBED></OBJECT>
<!--
<APPLET CODE = MainScreen CODEBASE = "." ARCHIVE= theGame3D.jar WIDTH =
450 HEIGHT = 315 NAME = theGame ALIGN = middle VSPACE = 0 HSPACE = 0 >
</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->
Stefano Scarpanti <[EMAIL PROTECTED]> on 03/09/2000 02:18:48 PM
To: Fahad Aziz/pk/Netsol
cc:
Subject: Re: browser
Ok, so I don't have an html converter, so plz can you point me at it or
give me an example of such html tags?
The second possibility may be simpler!
Thx
>
>hi,
>
>Java3D requires JRE to run.. as i mentioned before.
>inorder to access JRE from browser.. you have to make
>1. "activeX control" for IE
>2. "embded object" for Netscape.
>
>and this is made possible by just adding some extra tags i nHTML.
>this tag-addition is done by HTML Converter.
>
>fahad
>
>
>
>
>
>
>
>Stefano Scarpanti <[EMAIL PROTECTED]> on 02/07/2000 08:45:13 AM
>
>To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
>cc: Fahad Aziz/pk/Netsol
>
>Subject: Re: browser
>
>
>
>
>Thank you very much, java brother!
>
>>just wanted to add something .. that i think will help you.
>>
>>To run a Java3D applet on a browser.. Follow the following step.
>>
>>1. Install Java JRE 1.2.2 (or above)
>>2. Install Java3D (if u r using NT, prefer, OPen GL Version, that is easy
>>to run)
>>3. Make a jar file (that is , zip all the class files and pictures.)
>>4. Convert your HTML file . using HTML Converter.
>
>Please, what do you mean with "html converter"? And why sould I convert a
>web page? I sould care only about applet, web page does not matter. Am I
>wrong?
>
>>
>> i think that will work , well.
>>If you have more to ask.. please feel free to ask.
>>
>>one more thing. in JRE plugin, there is an option for Console log, enable
>>it, so that u could see the exceptions that arises.
>>See ya
>>Fahad
>>
>>
>>
>>
>>
>>
>>"Osborne, Richard N" <[EMAIL PROTECTED]> on
>>02/02/2000 05:02:14 PM
>>
>>Please respond to Discussion list for Java 3D API
>> <[EMAIL PROTECTED]>
>>
>>To: [EMAIL PROTECTED]
>>cc: (bcc: Fahad Aziz/pk/Netsol)
>>
>>Subject: Re: [JAVA3D] browser
>>
>>
>>
>>
>>You need to first download the Java Plugin for browsers (JRE 1.2 -> JRE
>>1.3). Then go download the jre version of Java 3D which may come with the
>>original install. I am not sure. That is a quick summary though.....
>>
>>Good luck
>>
>> -----Original Message-----
>> From: Stefano Scarpanti [SMTP:[EMAIL PROTECTED]]
>> Sent: Wednesday, February 02, 2000 9:24 AM
>> To: [EMAIL PROTECTED]
>> Subject: [JAVA3D] browser
>>
>> Hi all,
>> which is the way to add java library to a browser?
>> Suppose, I install java3D (or jmf, or something else) and then?
>>
>> If I build an applet using this library is the browser able to
run
>>it?
>>
>>
>>=========================================================================
=
>=
>> To unsubscribe, send email to [EMAIL PROTECTED] and include
in
>>the body
>> of the message "signoff JAVA3D-INTEREST". For general help, send
>>email to
>> [EMAIL PROTECTED] and include in the body of the message
>>"help".
>>
>>=========================================================================
=
>=
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>body
>>of the message "signoff JAVA3D-INTEREST". For general help, send email
to
>>[EMAIL PROTECTED] and include in the body of the message "help".
>>
>>=========================================================================
=
>=
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>body
>>of the message "signoff JAVA3D-INTEREST". For general help, send email
to
>>[EMAIL PROTECTED] and include in the body of the message "help".
>>
>>
>
>
>
>
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".