Topic awaiting preservation: why does my variable keep getting reset? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 08-12-2002 05:37
For some reason, a variable keeps getting reset to 0, and I can't figure out why. Here's my intention/theory: |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 08-12-2002 06:01
I'm pretty sure it's because you are using the keyword "var" within a function. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 08-12-2002 06:16 |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 08-12-2002 07:04
that's usually a syntax error |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 08-12-2002 11:50
on what line? |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 08-12-2002 15:07
Okay - first, the updated code: |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 08-12-2002 17:39
sorry, this is probably me being an idiot, but what is Play()? |
Paranoid (IV) Inmate From: Dublin, Ireland |
posted 08-12-2002 18:38
I thought transitions only worked on <DIV> but Im probably wrong, maybe that was only v.4 or something. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 08-12-2002 21:02
Well, Play() actually causes the blend to execute. http://www.javascriptkit.com/howto/showie42.shtml |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 08-13-2002 03:41
Is it case sensative? |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 08-13-2002 06:05
I don't this it's a case issue, since I have a working script at http://development.runningwolf.com/code/javascript/slideshow.htm that uses the Apply() and Play() commands without a problem. |