Fork me on GitHub

fadein()

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="resource/bootstrap/css/bootstrap.css"/>
    <script src="resource/jQuery/jquery-1.11.3.js"></script>
    <script src="resource/bootstrap/js/bootstrap.js"></script>
    <script>
        $().ready(function(){
            $("button").click(function(){
                $("#div1").fadeIn();
                $("#div2").fadeIn(3000);
                $("#div3").fadeIn("slow");
            })
        })
    </script>
</head>
<body>
<p>Demonstrate fadeIn() with different parameters.</p>
<button>Click to fade in boxes</button>
<br><br>
<div id="div1" style="width:80px;height:80px;display:none;background-color:red;"></div><br>
<div id="div2" style="width:80px;height:80px;display:none;background-color:green;"></div><br>
<div id="div3" style="width:80px;height:80px;display:none;background-color:blue;"></div>
</body>
</html>

 

posted @ 2016-07-11 17:25  ZZZZW  阅读(649)  评论(0编辑  收藏  举报
AmazingCounters.com