/    Sign up×
Community /Pin to ProfileBookmark

Changing images

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=’http://www.ipix.com/viewers/ipixx.cab#version=6,2,0,5‘>”;
<!– 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=’http://www.ipix.com/cgi-bin/download.cgi’></embed></OBJECT>”;

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=”http://www.ipix.com/viewers/ipixx.cab#version=6,2,0,5“>
<!– 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=”http://www.ipix.com/cgi-bin/download.cgi“>
</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?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @loztboy99 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...