I need a transition page that will display for 2 seconds before automatically redirecting to the home page. How do I do this? I can't seem to get delay to work for me.
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
You could use jQuery Timer. Here is the code (also found in this article):
You can just use
setTimeout()
directly, like this:Would the
delay()
function not work for you? Vanilla JavaScript withsetTimeout()
would work equally well.Hint: Suggesting actual code is kind of hard when you do not show your current code.