There is no problem with the following function. I want to insert code
at the point that the function does not repeat. I was pretty sure that
it could be inserted at the /// but that repeats with every loop. What
happens after the setTimeout? Does the flow continue through the bottom
of the function every time? How can I trap it on the last loop?
function moveTrain() {
if (MenuX < PosX) {
MenuX = MenuX + increment;
if (is_NS5up) {
document.getEle mentById('train Division').styl e.left = MenuX+"px";
}
else {
eval(Lq+'trainD ivision'+Sq+'.l eft=MenuX');
}
setTimeout('mov eTrain()',speed );
}
///
}
--
Dennis M. Marks
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----