HTML Scripting for the PanoramIX ActiveX
Control and Netscape Plug-in
The PanoramIX object/embed Block
The following block of html tags may be used to place a PanoramIX window in a web page. These tags and scripts handle platform-dependence (Wintel/MacOS) and browser dependence (Internet Explorer/Netscape/other)
<script language=javascript>
<!--
EndTag = unescape("%3e");
isMac = 0;
if (navigator.appVersion == '3.01 (Macintosh; I; 68K)') {
isMac = 2;
document.writeln('<img src="pixlogo.gif" alt="PanoramIX logo" height=HEIGHT'+EndTag);
document.writeln('<p'+EndTag);
document.writeln('Sorry, but PanoramIX is not available for 68k Macintosh systems. ');
document.writeln('PanoramIX is available for Power Mac systems, as well as');
document.writeln(' Windows 95 and Windows NT/x86 systems.');
document.writeln('<br'+EndTag);
}
else if (navigator.appVersion == '3.01 (Macintosh; I; PPC)') {
isMac = 1;
}
else {
if (!(navigator.userAgent.indexOf('Mac') < 0)) {
isMac = 1;
}
}
if (isMac == 1) {
document.write('<OBJECT ID="PanoramIX"');
document.write(' classid="clsid:B4CFAA05-25E2-11d1-8943-0004AC7613B0"');
document.write(' codebase="http://www.software.ibm.com/net.media/panoramix/download/PanoramIX-aPPC.hqx#Version=1,0,3,0"');
document.write(' codetype="application/x-oleobject"');
document.write(' standby="Installing the PanoramIX ActiveX control..."');
document.write(' width=WIDTH height=HEIGHT'+EndTag);
}
else {
document.write('<OBJECT ID="PanoramIX"');
document.write(' classid="clsid:B4CFAA05-25E2-11d1-8943-0004AC7613B0"');
document.write(' codebase="http://www.software.ibm.com/net.media/panoramix/download/Pix32.cab#Version=1,0,3,0"');
document.write(' codetype="application/x-oleobject"')
document.write(' standby="Installing the PanoramIX ActiveX control..."');
document.write(' width=WIDTH height=HEIGHT'+EndTag);
}
//-->
</script>
<param name="Control" value="PANFILENAME.pan">
<! Enable the following line to select sphere mode, otherwise delete it. >
<!param name="panMode" value="sphere">
<! Enable the following line to disable sprites, otherwise delete it. >
<!param name="sprite" value="off">
<! Enable the following line to set an initial azimuth, otherwise delete it. >
<param name="InitAzim" value="fAZIM">
<! Enable the following line to set an initial elevation, otherwise delete it. >
<!param name="InitElev" value="fELEV">
<! Enable the following line to set an initial field of view, otherwise delete it. >
<!param name="InitFov" value="fFOV">
<! Enable the following line to set an initial roll angle, otherwise delete it. >
<!param name="InitRoll" value="fROLL">
<! --- The following embed allows the PanoramIX Netscape plug-in to be --- >
<! --- used instead of the PanoramIX ActiveX control when not using MSIE --- >
<! --- The pluginURL supports the smartUpdate feature of Netscape v4.02+ --- >
<script language=javascript>
<!--
if (isMac == 0) { // Wintel platform
document.write(' <embed type="world/x-panoramix" src=PANFILENAME.pan width=WIDTH height=HEIGHT ');
document.write(' name="PanoramIX"');
document.write(' pluginURL="http://www.software.ibm.com/net.media/panoramix/download/Pix32.jar" ');
document.write(' pluginsPage="http://www.software.ibm.com/net.media/panoramix/download/" '+EndTag);
}
if (isMac == 1) { // PPC MacOS platform
document.write(' <embed type="world/x-panoramix" src=PANFILENAME.pan width=WIDTH height=HEIGHT ');
document.write(' name="PanoramIX"');
document.write(' pluginURL="http://www.software.ibm.com/net.media/panoramix/download/PanoramIX-nPPC.jar" ');
document.write(' pluginsPage="http://www.software.ibm.com/net.media/panoramix/download/" '+EndTag);
}
//-->
</script>
<! The following noembed block inserts a PanoramIX logo for -- >
<! browsers which do not support ActiveX or Netscape plug-ins.-- >
<noembed>
<img src="pixlogo.gif" alt="PanoramIX logo">
<p>
Sorry, but PanoramIX is not available for your browser.
PanoramIX is available for
Microsoft Internet Explorer versions 3 and 4, and
Netscape Navigator versions 3 and 4,
on Windows 95, Windows NT/x86, and PowerMac systems.
<br>
</noembed>
</embed>
</OBJECT>
Last modified October 19, 1998; October 11, 2001; January 27, 2006.
