#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    USA
    Posts
    194
    Rep Power
    16

    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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    ... wrong forum, this is java, not javascript.
    btw, there is no "layers.innerimage" property...

IMN logo majestic logo threadwatch logo seochat tools logo