Basically all my confusion is in this line:
setTimeout("animate(" + new Date().getTime() + "," + TimeToSlide + ",'"
+ openAccordion + "','" + nID + "')", 33);
I'm thinking that setTimeout waits 33 milliseconds and then calls the animate() function, which passes the current time. I was told I'm misinterpreting this.
I just don't understand what is meant by "new Date().getTime() is evaluated at timeout-setting time, not at timeout-calling time."
Also what is meant by the "last animation iteration"?
I been trying to understand this for a couple days. Thanks for any response.