Hey was wondering if anyone could help me with this, I am using javascript to change a ipix image – 360 degree image .
So when ever the user chooses a particular scene the image loads instead of a new html page, poblem is that there is two ways an ipix image can be displayed on a web page the way I am doing it which works is:
<script language=”JavaScript” type=”text/javascript”>
function change(iPIXimage) {
var newiPIX =”<OBJECT ID=’IpixX2′ WIDTH=350 HEIGHT=250 CLASSID=’CLSID:11260943-421B-11D0-8EAC-0000C07D88CF’ CODEBASE=’
<!– For MSIE 3,4+ –>
newiPIX+=”<PARAM NAME=’IPXFILENAME’ VALUE='” + iPIXimage + “‘>”;
<!– For Netscape 3,4 –>
newiPIX+=”<embed src='” + iPIXimage + “‘ WIDTH=’350′ HEIGHT=’250′ BORDER=’0′ PALETTE=’FOREGROUND’ type=’application/x-ipix’ pluginsPage=’
document.getElementById(‘iPIX’).innerHTML = newiPIX;
}
</script>
</head>
<body>
<div id=”iPIX”>
<OBJECT ID=”IpixX1″ WIDTH=”350″ HEIGHT=”250″ CLASSID=”CLSID:11260943-421B-11D0-8EAC-0000C07D88CF” CODEBASE=”
<!– For MSIE 3,4+ –>
<PARAM NAME=”IPXFILENAME” VALUE=”nameofimage.ipx”>
<!– For Netscape 3,4 –>
<embed src=”nameofimage.ipx” WIDTH=”350″ HEIGHT=”250″ BORDER=”0″ PALETTE=”FOREGROUND” type=”application/x-ipix” pluginsPage=”
</embed>
</OBJECT>
</div>
<a href=”#” onclick=”change(‘nameofimage.ipx’);return false;”>Image 1</a><br>
<a href=”#” onclick=”change(‘nameofimage.ipx’);return false;”>Image 2</a><br>
</body>
</html>
However I want to do it using an applet but can’t seem to get it to work, the code for the applet is :
<applet>
archive=”IpixViewer.jar”
align=”baseline”
width=”320″
height=”240″
name=”IpixViewer”>
<param name=”URL” value=”nameofimage.ipx”>
<param name=”BackgroundColor” value=”#20ff00″>
<param name=”SpinSpeed” value=”-5″>
<param name=”SpinStyle” value=”flat”>
</applet>
any ideas?