Login | |
|
 |
RE: JavaScript - If... Then... Else problem. - 5/18/2008 12:46:57 PM
|
|
 |
|
| |
TNO
Posts: 1067
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
Whats not working exactly? I click the word and a loading image appears, then it changes to content. I click again and the display is toggled back and forth. P.S. Would you like me to clean up your code? I'm a bit of a JS evangelist.
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
 |
RE: JavaScript - If... Then... Else problem. - 5/18/2008 1:15:50 PM
|
|
 |
|
| |
TKS
Posts: 154
Score: 0
Joined: 5/16/2008
Status: offline
|
quote:
ORIGINAL: TNO Whats not working exactly? I click the word and a loading image appears, then it changes to content. I click again and the display is toggled back and forth. P.S. Would you like me to clean up your code? I'm a bit of a JS evangelist. Hi TNO, If you toggle the word really fast the loading image that changes to content will eventually start swapping it's order with the showing of the content... "the order changes". So instead of the loading image showing first... the content shows then the loading image. And that looks really stupid! So, I put in a SetTimeOut function to prevent that from happening, but I don't think it's working... perhaps I haven't done the if... then... else properly... But if you can clean that up, that would be greatly appreciated. -TKS
|
|
| |
|
|
|
|
|