Ele funciona muito bem quando clico no link, mas eu gostaria que o conteúdo da div "myModal" abrisse automaticamente quando abrir a página. Como poderia fazer isso?
<!DOCTYPE html> <!-- * Markup for jQuery Reveal Plugin 1.0 * www.ZURB.com/playground * Copyright 2010, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php --> <head> <meta charset="utf-8" /> <title>Reveal Demo</title> <!-- Attach our CSS --> <link rel="stylesheet" href="reveal.css"> <!-- Attach necessary scripts --> <!-- <script type="text/javascript" src="jquery-1.4.4.min.js"></script> --> <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script> <script type="text/javascript" src="jquery.reveal.js"></script> <style type="text/css"> body { font-family: "HelveticaNeue","Helvetica-Neue", "Helvetica", "Arial", sans-serif; } .big-link { display:block; margin-top: 100px; text-align: center; font-size: 70px; color: #06f; } </style> <script type="text/javascript"> $(document).ready(function() { $('#myButton').click(function(e) { e.preventDefault(); $('#myModal').reveal(); }); }); </script> </head> <body> <a href="#" class="big-link" data-reveal-id="myModal"> Fade and Pop </a> <div id="myModal" class="reveal-modal"> <h1>Reveal Modal Goodness</h1> <p>This is a default modal in all its glory, but any of the styles here can easily be changed in the CSS.</p> <a class="close-reveal-modal">×</a> </div> </body> </html>