dynamic image change in an applet

admin

Administrator
Staff member
how do i dynamically change an image in a java applet?

<applet archive="zoompan.jar" code="zoompan.class" width="220" height="280">
<param name="image" value=http://www.webdeveloper.com/forum/archive/index.php/"hanger.jpg">
<param name="name" value="hanger">
<param name="autodesign" value="NO">
<param name="zoomspeed" value="30">
<param name="xmovespeed" value="2">
<param name="ymovespeed" value="1">
<param name="xborder" value="80">
<param name="yborder" value="100">
<param name="maxzoom" value="2">

<param name="priority" value="3">
<param name="MinSYNC" value="10">
Sorry, your browser doesn't support Java
</applet>


before i used the applet, i have this javascript and it works perfectly fine for plane images

<script language="JavaScript" type="text/JavaScript">
<!--
function imgswap(name, color)
{
eval("document." + name + ".src = 'products/" + name + color + ".jpg'");
}
//-->
</script>
how do i integrate this two??

any help will be very much appreciated
 
Back
Top