neil9999
11-24-2003, 12:46 PM
Hi,
I have this code:
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<SCRIPT LANGUAGE="JavaScript1.2">
function setv(){
clr="1";
chngeclr();
}
function chngeclr(){
if(clr=="1"){aclr="blue"; clr="2"};
if(clr=="2"){aclr="red"; clr="1"};
document.getElementById('tble').bgColor=aclr;
setInterval("chngeclr()",1000);
}
</script>
</head>
<body bgcolor="#99FF33" vlink="#0000FF" onload="setv()">
<table border="0" align="center">
<tr>
<td width="0%" align="center>Bla bla bla</td>
</table>
<table border="0" width="100%" id="tble">
<tr>
<td width="100%" colspan="3" align="center">Bla Bla Bla</td>
</tr>
</table>
</body>
</html>
What is meant to happen is for the background colour of the second table to change between red and blue every second. How could I then change it so it changes the font colour instead?
Thanks,
Neil
I have this code:
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<SCRIPT LANGUAGE="JavaScript1.2">
function setv(){
clr="1";
chngeclr();
}
function chngeclr(){
if(clr=="1"){aclr="blue"; clr="2"};
if(clr=="2"){aclr="red"; clr="1"};
document.getElementById('tble').bgColor=aclr;
setInterval("chngeclr()",1000);
}
</script>
</head>
<body bgcolor="#99FF33" vlink="#0000FF" onload="setv()">
<table border="0" align="center">
<tr>
<td width="0%" align="center>Bla bla bla</td>
</table>
<table border="0" width="100%" id="tble">
<tr>
<td width="100%" colspan="3" align="center">Bla Bla Bla</td>
</tr>
</table>
</body>
</html>
What is meant to happen is for the background colour of the second table to change between red and blue every second. How could I then change it so it changes the font colour instead?
Thanks,
Neil