Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16336
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: setimeout() problem |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <506bccbe$0$16500$426a74cc@news.free.fr> <08869374-503e-41a0-aee6-69fb271bf5d7@googlegroups.com> <506bd3c2$0$2351$426a74cc@news.free.fr> <XnsA0E1557A0979Aeejj99@194.109.133.133> <506bef7b$0$6112$426a74cc@news.free.fr> |
| Message-ID | <XnsA0E183B62D8Eeejj99@194.109.133.133> (permalink) |
| Date | 2012-10-03 10:56 +0000 |
jmrw wrote on 03 okt 2012 in comp.lang.javascript:
> My var play is defined globally line 663 I think
Use:
var play = true;
>
> Line 674 I added :
>
> ------------------
> function diaporamarandom() {
> if (!play) return;
> -----------------
>
> diaporamrandom() does'nt work anymore.
Ofcourse it "works", it just returns if play is false.
>
> if I put
>
> -----------------
> function diaporamarandom() {
> play=true;
Put that as the global definition outside the function.
> if (!play) return;
> -----------------
>
> diaporamarandom() works, but stop() does'nt anymore.
Are you just experimenting with random code,
or are you programming while understanding the code you write down?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
setimeout() problem "jmrw" <jmrw@free.fr> - 2012-10-03 07:27 +0200
Re: setimeout() problem ankit pandey <blackhill08@gmail.com> - 2012-10-02 22:49 -0700
Re: setimeout() problem "jmrw" <jmrw@free.fr> - 2012-10-03 07:57 +0200
Re: setimeout() problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-03 06:24 +0000
Re: setimeout() problem "jmrw" <jmrw@free.fr> - 2012-10-03 09:55 +0200
Re: setimeout() problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-03 10:56 +0000
Re: setimeout() problem Tim Streater <timstreater@greenbee.net> - 2012-10-03 09:17 +0100
Re: setimeout() problem "jmrw" <jmrw@free.fr> - 2012-10-03 10:37 +0200
Re: setimeout() problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-03 10:59 +0000
Re: setimeout() problem "jmrw" <jmrw@free.fr> - 2012-10-03 12:04 +0200
Re: setimeout() problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-03 11:02 +0000
Re: setimeout() problem "jmrw" <jmrw@free.fr> - 2012-10-03 16:52 +0200
Re: setimeout() problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-03 15:05 +0000
Re: setimeout() problem Dr J R Stockton <reply1240@merlyn.demon.co.uk.invalid> - 2012-10-04 20:00 +0100
Re: setimeout() problem Scott Sauyet <scott.sauyet@gmail.com> - 2012-10-03 05:54 -0700
Re: setimeout() problem "jmrw" <jmrw@free.fr> - 2012-10-03 16:50 +0200
Re: setimeout() problem Scott Sauyet <scott.sauyet@gmail.com> - 2012-10-03 10:10 -0700
Re: setimeout() problem "jmrw" <jmrw@free.fr> - 2012-10-03 22:15 +0200
Re: setimeout() problem Scott Sauyet <scott.sauyet@gmail.com> - 2012-10-03 13:30 -0700
Re: setimeout() problem Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-10-04 12:26 +0200
csiph-web