Hello, I am a java/html novice. Actually I have no clue as to what I am doing. Currently I have some java applets that communicate with a server and display data based upon what state the equipment is in. Say an input to a system is true it will display one, if its false, 0 etc. I am trying to get these 1's and 0's to be photo's. I am hoping someone could help me with this task?

Ryan LaChappelle

Thank you!

if you sent your code i would be more helpfull

OK, well although its extremely long... here is my code...

<head>
<title>GMPT Flint North - Plant 5 - CPX Pump Up System</title>
<SCRIPT LANGUAGE = "JavaScript 1.2">

function RSto() {window.resizeTo(800,400)}

</SCRIPT>
</head>

<body vlink="0000CD">
<table border="0" width="90%" cellspacing="0" cellpadding="0">
<tr>
<td width="29%" bgcolor="#FFFFFF">

<p align="center"><font face="monotype corsiva" size="5"></font>
<img src="http://172.24.5.200/gmlogobig.jpg"></p>
</td>
<td width="71%" bgcolor="#FFFFFF">
<p align="center"><font face="monotype corsiva" size="7"><center>GMPT Flint North - Plant 5<p> CPX Pump Up System</center></font></p>
</td>

</table>
<HR>
<HR size=10>
<HR>
<table border="3" width="100%">
<tr>
<td width="100%">
<table border="2" width="100%" color="0000CD" cellspacing="3" cellpadding="3">
<tr>
<td width="29%" valign="top">
<BR>
<div align="center">
<table border="0" width="70%" cellspacing="0" cellpadding="0">
<tr>
<tr align="center">
<td width="100%" bgcolor="#0000CD"><font face="monotype corsiva" font color="FFFFFF"><B>Inputs</B></font></td>
<tr>
<td width="100%">
<ul>
<BR>
Parts Meter:
<applet code="fstoperand.class" codetype="application/java" height="16" width="30" align="top">
<param name="operand" value="E0.0">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="14">
<param name="style" value="bold">
</applet>
<BR>
Pump Down:
<applet code="fstoperand.class" codetype="application/java" height="16" width="30" align="top">
<param name="operand" value="E0.1">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="14">
<param name="style" value="bold">
</applet>
<BR>
Pump Up:
<applet code="fstoperand.class" codetype="application/java" height="16" width="30" align="top">
<param name="operand" value="E0.2">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="14">
<param name="style" value="bold">
</applet>
<BR>
Part Exit Pump:
<applet code="fstoperand.class" codetype="application/java" height="16" width="30" align="top">
<param name="operand" value="E0.3">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="14">
<param name="style" value="bold">
</applet>
<BR>
Auto Mode:
<applet code="fstoperand.class" codetype="application/java" height="16" width="30" align="top">
<param name="operand" value="E1.0">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="14">
<param name="style" value="bold">
</applet>
<BR>
Manual Mode:
<applet code="fstoperand.class" codetype="application/java" height="16" width="30" align="top">
<param name="operand" value="E1.1">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="14">
<param name="style" value="bold">
</applet>
<BR>
Push Button Up:
<applet code="fstoperand.class" codetype="application/java" height="16" width="30" align="top">
<param name="operand" value="E1.2">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="14">
<param name="style" value="bold">
</applet>
<BR>
Push Button Down:
<applet code="fstoperand.class" codetype="application/java" height="16" width="30" align="top">
<param name="operand" value="E1.3">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="14">
<param name="style" value="bold">
</applet>
</ul>
</td>
</tr>
</applet>
<tr>
<tr align="center">
<td width="100%" bgcolor="#0000CD"><font face="monotype corsiva" font color="FFFFFF"><B>Outputs</B></font></td>
</tr>
<tr>
<td width="100%">
<ul>
<BR>
Meter Actuated:
<applet code="fstoperand.class" codetype="application/java" height="16" width="30" align="top">
<param name="operand" value="A32.0">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="14">
<param name="style" value="bold">
</applet>
<BR>
Pump Moving Up:
<applet code="fstoperand.class" codetype="application/java" height="16" width="30" align="top">
<param name="operand" value="A32.1">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="14">
<param name="style" value="bold">
</applet>
<BR>
Pump Moving Down:
<applet code="fstoperand.class" codetype="application/java" height="16" width="15" align="top">
<param name="operand" value="A32.2">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="14">
<param name="style" value="bold">
</applet>
</ul>
</td>
</tr>
<tr>
<tr align="center">
<td width="100%" bgcolor="#0000CD"><font face="monotype corsiva" font color="FFFFFF"><B>Miscellaneous</B></font></td>
</tr>
<tr>
<td width="100%">
<ul>
<li><font face="Verdana" size="2"><a href="http://172.24.5.200/small.htm">Mini-Display</a></font></li>
<li><font face="Verdana" size="2"><a href="http://172.24.5.200/cad.htm">CAD File</a></font></li>
<li><font face="Verdana" size="2"><a href="http://172.24.5.200/contact.htm">Festo Contacts</a></font></li>
<li><font face="Verdana" size="2"><a href="http://172.24.5.200/trouble.htm">Trouble Shooting</a></font></li>
<li><font face="Verdana" size="2"><a href="http://172.24.5.200">Main Page</a></font></li>
</ul>
</td>
</tr>
</table>
</div>
</td>
<td width="71%" valign="top">
<div align="center">
</div>
<align=center>
<Font face="monotype corsiva" font size="4">
<P Align="center">
This page is designed to provide a display to enhance the capabilities of the Festo CPX Stand-alone <br>Module. This page provides real time I/O statuses of all I/O's for the module. It also provides an accurate <br>production count for the number of parts that have traveled through the pump-up system.</p><p align="center">

With all these features this page should make troubleshooting, as well as daily tasks such as recording<br> production counts, easer. With time this system will spread across Plant 5 and GMPT Flint North <br>making the work environment more employee oriented.</P>

<p align="center"><font size ="2" font face="Verdana" font color="0000CD">Production count through the pump up is:
<applet code="fstoperand.class" name="ZW0" height="20" width="60" align="top">
<param name="operand" value="ZW0">
<param name="delay" value="1000">
<param name="mode" value="signed">
<param name="font" value="Arial">
<param name="size" value="16">
<param name="style" value="bold">
<param name="modify" value="yes">
</applet>
<form method="post" action="">
<input type="button" value="Clear Counter" onclick="document.ZW0.setValue('0')">
</form>

<p align="center"><font face="Verdana" size="2"><img src="http://172.24.5.200/CPX.bmp"><p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
<Marquee><font face="monotype corsiva" size="4"> Welcome to the GMPT Flint North CPX Module for the Pump-Up system in A-11 of Plant 5!!! </Marquee
</body>

It is the HTML and the embeded Java Script... as you can see the ZW0 etc are inputs that the java is reading from a server, signaling whether to toggle true or false. But instead of 0's and 1's i'd like to display a picture.... HELP :)

Ryan LaChappelle

Hi everyone,

Isn't this javascript??

Richard West

no. It's an html file containing an insane number of applet instances. It doesn't contain any of the Java code relating to those applets though.

Hi everyone,

Ah sorry my mistake

Richard West

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.