natureboy76
Programmer
Hey guys I have all my work done on this web page except the last part I can't seem to get....I need to create a startCountdown function so it changes the value assigned to the text field in the body to the value of a variable named count, which decreases by a value of one (from 15 to 1)..I've gotten everything else to work...Here is my program so far:
<html xmlns="<head>
<title>Central Valley Realtors</title>
<script type="text/javascript">
/* <![CDATA[ */
var startAdPAge() {
location.href="CVR2.html";
}
/* ]]> */
</script>
</head>
<body onload="startAdPAge =
setinterval('cvr2()', 15000);">
<table width="75%">
<tr>
<td>
<img src="cvb1.gif" height="300" width="425" alt="Changing advertising image" />
</td>
<td align="center">
<p>
<strong>Advertisement</strong></p>
<form action="" name="timerForm">
<p>
The Central Valley Realtors home page will display in
<input type="text" name="timeLeft" size="1" value="15" style="background-color: Transparent;
border: none; overflow: hidden; font: 10px tahoma; color: #3F3F3F" />
seconds</p>
<p>
<a href="CVR2.html">Skip advertisement</a></p>
</form>
</td>
</tr>
</table>
</body>
<html xmlns="<head>
<title>Central Valley Realtors</title>
<script type="text/javascript">
/* <![CDATA[ */
var startAdPAge() {
location.href="CVR2.html";
}
/* ]]> */
</script>
</head>
<body onload="startAdPAge =
setinterval('cvr2()', 15000);">
<table width="75%">
<tr>
<td>
<img src="cvb1.gif" height="300" width="425" alt="Changing advertising image" />
</td>
<td align="center">
<p>
<strong>Advertisement</strong></p>
<form action="" name="timerForm">
<p>
The Central Valley Realtors home page will display in
<input type="text" name="timeLeft" size="1" value="15" style="background-color: Transparent;
border: none; overflow: hidden; font: 10px tahoma; color: #3F3F3F" />
seconds</p>
<p>
<a href="CVR2.html">Skip advertisement</a></p>
</form>
</td>
</tr>
</table>
</body>