I currently have a forum online at:
[URL=http://s7.invisionfree.com/thenewrpg]http://s7.invisionfree.com/thenewrpg
when you load it up, i want to display the timezones at the top (You’ll notice it) but it dosn’t seem to load. Here’s my code:
[COLOR=darkblue]
<form name=”boxes”><table>
<tr><th colspan=”4″ bgcolor=”blue”><font color=”white”>TIMEZONES</font></th><td bgcolor=”lime”></td></tr>
<tr>
<td bgcolor=”orange”><input type=”text” readonly name=”englandtime” size=”5″ style=”background-color:transparent;color:purple;border-style:none;text-align:right”> – London </td>
<td bgcolor=”aqua”><input type=”text” readonly name=”usatime” size=”5″ style=”background-color:transparent;color:purple;border-style:none;text-align:right””> – New York </td>
<td bgcolor=”red”><input type=”text” readonly name=”francetime” size=”5″ style=”background-color:transparent;color:purple;border-style:none;text-align:right””> – Paris</td>
<td bgcolor=”yellow”><input type=”text” readonly name=”floridatime” size=”5″ style=”background-color:transparent;color:purple;border-style:none;text-align:right””> – Florida</td>
<td bgcolor=”lime”>Current Actions : <input type=”text” readonly name=”actions”></td>
</tr>
</form></table>
<script language=”javascript”>
window.onLoad = “strt()”;
window.onLoad = “chckact()”;
function strt(){
now = new Date;
document.boxes.englandtime.value = now.getHours() + “:” + now.getMinutes() + “:”+ now.getSeconds();
usa = now.getHours() – 5;
document.boxes.usatime.value = usa + “:” + now.getMinutes() + “:” + now.getSeconds();
frn = now.getHours() + 1;
document.boxes.francetime.value = frn + “:” + now.getMinutes() + “:” + now.getSeconds();
flo = now.getHours() – 8;
document.boxes.floridatime.value = flo + “:” + now.getMinutes() + “:” + now.getSeconds();
setTimeout(“chckact()”,1000);
setTimeout(“strt()”,1000);
}
function chckact(){
document.boxes.actions.value = “None”;
if(now == 12){document.boxes.actions.value = “Lunch in England”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
if(now == 24){document.boxes.actions.value = “Mignight in England”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
if(usa == 12){document.boxes.actions.value = “Lunch in New York”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
if(usa == 24){document.boxes.actions.value = “Mignight in New York”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
if(frn == 12){document.boxes.actions.value = “Lunch in France”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
if(frn == 24){document.boxes.actions.value = “Mignight in France”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
if(flo == 12){document.boxes.actions.value = “Lunch in Florida”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
if(flo == 24){document.boxes.actions.value = “Mignight in Florida”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
if(flo == 9){document.boxes.actions.value = “Breakfast in Florida”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
if(now == 9){document.boxes.actions.value = “Breakfast in England”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
if(frn == 9){document.boxes.actions.value = “Breakfast in France”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
if(usa == 9){document.boxes.actions.value = “Breakfast in New York”;setTimeout(“red()”,0500);setTimeout(“blue()”,1000);setTimeout(“normal()”,1500)}else{
}
}
}
}
}
}
}
}
}
}
}
}
setTimeout(“chckact()”,4000);
}
function red(){document.boxes.actions.style.bgColor = “red”}
function blue(){document.boxes.actions.style.bgColor = “blue”}
function normal(){document.boxes.actions.style.bgColor = “white”}
</script>
thanks a lot for any help!