
December 13th, 2002, 09:43 PM
|
|
Contributing User
|
|
Join Date: Jun 2001
Location: USA
Posts: 194
  
Time spent in forums: 5 h 47 m 49 sec
Reputation Power: 10
|
|
|
change image after a few seconds help
I would like to change the image after a few seconds what am i doing wrong below?
sorry no javascript tags used php
PHP Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<script LANGUAGE="JavaScript">
var image_iCount = new Number();
var image_iCount = 10;
function startCountdown(){
if((image_iCount - 1) >= 5){
image_iCount = image_iCount - 1;
numberCountdown.innerimage = document.write('<img src="images/1.gif">');
}
else
{
numberCountdown.innerimage = document.write('<img src="images/1.gif">');
}
//setTimeout('startCountdown()',1000);
}
</script>
</head>
<body onLoad="startCountdown()">
<div align="center" id="numberCountdown" onload="setTimeout('startCountdown()',1000)"></div>
</body>
</html>
thanks jobesd
__________________
I only do what the voices in my head keep telling me to do.
|