473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Any one Have coding of Reverse stop watch?

Any one Have coding of Reverse stop watch?
Oct 8 '09 #1
11 3700
Plater
7,872 Expert 4TB
What is that? You mean like a count down?
Oct 8 '09 #2
Send me Code to create Reverse stop watch in java script...
Oct 9 '09 #3
Dormilich
8,658 Expert Mod 8TB
double posting is against our forum rules (you should really read them). If you need to bring up your previous post then make a reply there.

and we’re not giving out code (this is a place to learn).

MODERATOR
Oct 9 '09 #4
How to Get Value from loop?To Start the Timer
With JavaScript
Oct 10 '09 #5
I have Done this but its not working Properly....
Expand|Select|Wrap|Line Numbers
  1. <input type="text" id="i" name="i">
  2. <script type="text/javascript">
  3.  
  4. var image=new Array("1","2","3","4","5","6");
  5. function change()
  6. {
  7.     for(index=5;index<=image.length;index--)
  8.     {
  9.         document.all("i").value=image[index];
  10.          setInterval("change()",1000);
  11.     }
  12. }
Oct 11 '09 #6
ssnaik84
149 100+
what u want to do exactly?

Expand|Select|Wrap|Line Numbers
  1. for(index=5;index<=image.length;index--)
problem is here..
image.length is 5 , and you are decreasing index value..

it will go into infinite loop..
Oct 11 '09 #7
gits
5,390 Expert Mod 4TB
could you show the code you have and explain your problem a bit more clearly?

kind regards
Oct 12 '09 #8
Plater
7,872 Expert 4TB
You are also starting a new countdown timer every iteration through your loop
Oct 12 '09 #9
acoder
16,027 Expert Mod 8TB
Keep setInterval outside the function and use document.getElementById() in place of document.all.
Oct 13 '09 #10
@Plater
Yeah Countdown I've created By loop AlSo but its not working properly Help me if U can..
Oct 16 '09 #11
Dormilich
8,658 Expert Mod 8TB
what code do you have so far (including the latest updates)?
Oct 16 '09 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

59
by: Raymond Hettinger | last post by:
Please comment on the new PEP for reverse iteration methods. Basically, the idea looks like this: for i in xrange(10).iter_backwards(): # 9,8,7,6,5,4,3,2,1,0 <do something with i> The...
31
by: Raymond Hettinger | last post by:
Based on your extensive feedback, PEP 322 has been completely revised. The response was strongly positive, but almost everyone preferred having a function instead of multiple object methods. The...
8
by: xiao zhang yu | last post by:
me was sorry if this question are present before DotNet, no matter VB.Net or C# all they are compiled to IL, and yes, that IL will totally same as "open-sourse", every IL will easy to decompile...
2
by: Job Lot | last post by:
how can i create a stop watch using vb.net i am performing a data extraction job using windows forms and want to display time elapsed on the form. how can i do it? Thanks
15
by: Fady Anwar | last post by:
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised...
2
by: nafri | last post by:
i have a colleciton that i need to reverse. Array has a reverse method. Is their any direct way to transfer the items in the collection to an array or arraylist, reverse the array and transfer back...
23
by: Simon Hengel | last post by:
Hello, we are hosting a python coding contest an we even managed to provide a price for the winner... http://pycontest.net/ The contest is coincidentally held during the 22c3 and we will be...
41
by: rick | last post by:
Why can't Python have a reverse() function/method like Ruby? Python: x = 'a_string' # Reverse the string print x Ruby: x = 'a_string' # Reverse the string
15
by: rajash | last post by:
Thanks for the additional comments. Here is a solution to an exercise I had problems with. I still don't think it's really what's wanted as it uses a "state variable" n - but I can't see how to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.