[RESOLVED] How can I use the timer event to let an en event such as the window.onresize only run for 12 a second and then stop

My Javascript swaps out links in the head tag that control such things as which direction a menu pops out depending on where it is on the screen.  Unfortunately, because it changes the position of panels when it changes the links, it puts window.onresize into an endless loop.

I would like to just set the function to run for 1 millisecon everytime it runs and then top. 

How can I do that?

Ehm considering you hav no code here or anything but if you want to use the timer control you can look here

http://msdn.microsoft.com/en-us/library/bb386404.aspx

but I dont know if that answers want you want...if you post you code it might be easier to help you :)

thoughts on "[RESOLVED] How can I use the timer event to let an en event such as the window.onresize only run for 12 a second and then stop "

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>