Blobishthing
Programmer
I have this script where it gets a random number and from that if it is less than 56 the bgColor is green if it is more than 56 the bgColor is black but it is always black
here is the script...
<script language="JavaScript" type="text/javascript">
<!--
now = new Date()
num = now.getSeconds() + now.getMinutes() + now.getHours()
if(num <= 56)
{
document.bgColor="green";
}
if(num > 57)
{
document.bgColor="black";
}
if(document.bgColor="black"
{
document.fgColor="white";
}
document.write(num);
//-->
</script>
here is the script...
<script language="JavaScript" type="text/javascript">
<!--
now = new Date()
num = now.getSeconds() + now.getMinutes() + now.getHours()
if(num <= 56)
{
document.bgColor="green";
}
if(num > 57)
{
document.bgColor="black";
}
if(document.bgColor="black"
{
document.fgColor="white";
}
document.write(num);
//-->
</script>