<head> <script type="text/javascript"> $(document).ready(function () { $("#div1").hide(4000); }); $(function () { $("#div1").slideDown(300); }); $(document).ready(function () { $("#div2").hide(4000); }); $(function () { $("#div2").slideDown(300); }); </script> </head> <body> <div id="div1" style="background-color: red; width: 100px; height: 110px;"></div> <div id="div2" style="background-color: green; width: 110px; height: 120px;"></div> </body> </html>
$(function () { $("#div1").slideDown(1000, function(){ $("#div2").slideDown(1000) });
$(document).ready(function(){ $("#div1, #div2").hide(); $("#div1").slideDown(2000, function(){ $("#div2").slideDown(2000) }); })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)