http://extine.net/~trig/badcode.txt
Thats the Url to the full source
now this is a script .. part of a group of them.. made for a chatroom
if you look at
http://www.thedigital-edge.co.uk/cgi-bin/skool/spycam.pl?test
you will see where it says, "condtion Green.. Yellow.. Red..etc".. a Lime green table around it
now he file.. chat.pls the main "hub" of the script
now it worked fine until i tryed to implment the feature where you change the "condtion" to say Red and then the table turned to Red
i did this by editing
quote:
if (@status[0] eq "Green")
{
$alert2 = "Green" & $color1 = "#00ff00";
}
elsif (@status[0] eq "Yellow")
{
$alert2 = "Yellow" & $color1 = "yellow";
}
elsif (@status[0] eq "Red")
{
$alert2 = "Red" & $color1 = "red";
}
elsif (@status[0] eq "Blue")
{
$alert2 = "Blue" & $color1 = "blue" ;
}
elsif (@status[0] eq "Destruct")
{
$alert2 = "Destruct";
}
else
{
$alert2 = "Green";
}
and then i edited.. the part of the html that shows the table.. changing the colour of the table with the $color1 variable
[quote]
print qq~</b></font></td>
<td align="right" bgcolor="#000000"><font face="$fontface" size="$fontsize" color="$colour1"><b>Users: <a href=users.pl><font color ="#00ff00">$total</A></font></b></font></td>
</tr>
<tr>
<td align="center" colspan="2" bgcolor="#000000"><a href="$cgiurl/updates.pl"><img src="$alert/@status.gif" border="0"></a></td>
</tr>
<tr>
<td align="center" colspan="2" bgcolor="#000000"><font face="$fontface" size="$fontsize" color="$color1"><font color = #00ff00>[</font><font color="#00ff00">$subject2</font><font color = "$color1">]</font></font></td>
</tr>
<tr>
<td align="center" colspan="2" bgcolor="#000000"><font face="$colour1" size="$fontsize" color=""$colour1""><font color = $colour1>[</font><font color="#00ff00">Chatting As $formdata{'logon'}</font><font color = #00ff00>]</font></font></td>
</tr>
</table>
</center><P>
[/qoute]
now, anyone got any idea as to why that wont work?.. and how to fix it. so it will work?
any help would be really appreciated
Thanks
.Trigger