![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I want to show pictures each 5 seconds, so i define first the present time: tempsreel= new Date() trh=tempsreel.getHours() trm=tempsreel.getMinutes() trs=tempsreel.getSeconds() te=parseInt(trh)*3600+parseInt(trm)*60+parseInt(tr s) Now i calculate 5 seconds further: nte=te+5 Finally, the new picture must appear five seconds later, but i can't compare "te" with "nte" because the difference will always be 5. What i want is to block the value of "nte", so when the real time equals "nte", then next picture ... Any idea how? Thanks Chris |
![]() |
| Thread Tools | |
| Display Modes | |
| |