![]() Topic awaiting preservation: why does my variable keep getting reset? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() 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 |
![]() I'm pretty sure it's because you are using the keyword "var" within a function. |
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() that's usually a syntax error |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() on what line? |
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() Okay - first, the updated code: |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() sorry, this is probably me being an idiot, but what is Play()? |
Paranoid (IV) Inmate From: Dublin, Ireland |
![]() 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 |
![]() Well, Play() actually causes the blend to execute. http://www.javascriptkit.com/howto/showie42.shtml |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Is it case sensative? |
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() 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. |