Hi all, I am from Portugal ( Europe )and this is my first time here and I need some help.
I am working on a program and need a script similar to this one:
The program at the end of the scripting converts java into html for browser viewing.
[COLOR=red]
<table>
<tr>
<td>
<script type=”text/javascript” language=”JavaScript”>
if (“{@Foto1@}” != “#”) {
document.write(“<td><img src=”{@Foto1@}.JPG”></td>”);
}
else {
document.write(“<td></td>”);
}
</script>
</td>
<td>
<script type=”text/javascript” language=”JavaScript”>
if (“{@Foto2@}” != “#”) {
document.write(“<td><img src=”{@Foto2@}.JPG”></td>”);
}
else {
document.write(“<td></td>”);
}
</script>
</td>
</tr>
</table>
Now, the first part of the script works perfectly, being:
[COLOR=darkblue]<script type=”text/javascript” language=”JavaScript”>
if (“{@Foto1@}” != “#”) {
document.write(“<td><img src=”{@Foto1@}.JPG”></td>”);
}
The same can not be said for the second part:
[COLOR=chocolate]else {
document.write(“<td></td>”);
}
This being: If I write a NUMBER in the program where{@FOTO1@} applies, the program converts it to <td><img src=”1.JPG”></td>
If I leave it blank or write any thing else, instead of giving me <td></td> i get an icon with a red cross in the browser stating a bad link to the image.
Is there anyone there that can see where I went wrong?
Please, I have been at this war for a week.