Anyone use Kyle Fox modal plugin for jQuery? http://kylefox.ca/jquery-modal/examples/
I already use this extensively on a site and it is great but for the first time I need to launch one of the modals about 2 seconds after the page loads. All the documentation is click event based. Any ideas how I could achieve this?
You can manually open a modal by calling the .
modal() method on an element. Combine this with
setTimeout() and you can achieve what you desire : )
<meta charset="utf-8" />
<link rel="stylesheet" href="jquery.modal.css" type="text/css" media="screen" />
<div id="myDiv" class="modal">
<h1>Some awesome content!</h1>
Thanks! That did it. Really appreciate the details!
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.