[Javascript] A Timed removal of DOM elements
tedd
tedd at sperling.com
Sat Mar 29 10:18:02 CDT 2008
At 11:12 AM -0700 3/28/08, Peter Brunone wrote:
>Hi Tedd,
>
> It's a computer; you can do anything :)
>
> Seriously, though, if you have the IDs, then you just need to
>define your rules for parsing them (I assume you meant that #q33
>would disappear after 3 seconds, rather than having #q31 disappear
>twice). Take the last character of the ID -- or just replace the
>#q3 part if your sequence goes into the double digits -- and
>then call parseInt to convert it to an integer. Use a function that
>recursively calls itself with setTimeout if there's another element
>left in the sequence, and you should be all set.
>
>Does that make any sense? I haven't slept much lately.
It was a typo on my part. I meant to say that elements q31, q31, and
q33 would disappear in order and one second apart. Unfortunately, I
said q31 when I meant to say q33. However, my css was pretty clear
and consistent.
Thanks,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
More information about the Javascript
mailing list