Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 13th, 2002, 09:43 PM
jobesd jobesd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: USA
Posts: 194 jobesd User rank is Corporal (100 - 500 Reputation Level)jobesd User rank is Corporal (100 - 500 Reputation Level)jobesd User rank is Corporal (100 - 500 Reputation Level)jobesd User rank is Corporal (100 - 500 Reputation Level) 
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.

Reply With Quote
  #2  
Old December 16th, 2002, 01:01 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
... wrong forum, this is java, not javascript.
btw, there is no "layers.innerimage" property...
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > change image after a few seconds help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway