D
df
Why?
Why?
Why onResize fires 3 times when I re-size the window?
because it fires as you're resizing it, and not just at the end of the
resize, why would you expect it to only fire at the end?
Jim.
because it fires as you're resizing it, and not just at the end of the
resize, why would you expect it to only fire at the end?
Jim.
Jim Ley wrote :
IE 6+ will fire the resize event continuously. Opera 8+ also.
Not understand very much.Would you mind telling more details?
df wrote on 18 mei 2006 in comp.lang.javascript:
Would you mind where you are talking about?
Please quote what you are replying to.
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at the
top of the article, then click on the "Reply" at the bottom of the article
headers.
Evertjan. 写é“:
Roger~
And now,Am I OK this time?
Well,dear guys,I just want append a function to run only *one* time
after the OnResize event is finished.How can I?
Well,dear guys,I just want append a function to run only *one* time
after the OnResize event is finished.How can I?
Jim said:var globalWindowResizeTimer=0
window.onresize=function() {
clearTimeout(globalWindowResizeTimer);
globalWindowResizeTimer=setTimeout(whateverYouWant,150);
}
The normal event culling method.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.