View Single Post
Old 12-03-2012, 09:23 PM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,465
Thanks: 0
Thanked 499 Times in 491 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Code:
window.setTimeout(BlinkText(AgentNum,objID),3000);
runs BlinkText immediately and then the function the code expects that call to return gets queued to run three seconds later.

To have BlinkTest run after a three second delay you need to code it as:

Code:
window.setTimeout(function() {BlinkText(AgentNum,objID)},3000);
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote