(076)jquery_插件_lightBox

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
    <title>plug_lightbox.html</title>
    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
    <link rel="stylesheet" type="text/css" href="../css/jquery_lightbox/jquery.notesforlightbox.css"></link>
    <style type="text/css">
        #divtest
        {
            width: 282px;
        }
        #divtest .title
        {
            padding: 8px;
            background-color: Blue;
            color: #fff;
            height: 23px;
            line-height: 23px;
            font-size: 15px;
            font-weight: bold;
        }
        #divtest .content
        {
            padding: 8px 0px;
            background-color: #fff;
            font-size: 13px;
        }
        #divtest .content .divPics ul
        {
            list-style: none;
            padding: 0px;
            margin: 0px;
        }
        #divtest .content .divPics ul li
        {
            display: inline;
        }
        #divtest .content .divPics ul img
        {
            border: 5px solid #444;
            border-width: 5px;
            width: 75px;
            height: 75px;
        }
        #divtest .content .divPics ul a:hover img
        {
            border: 5px solid #fff;
            border-width: 5px;
            color: #fff;
        }
        #divtest .content .divPics ul a:hover
        {
            color: #fff;
        }
        .fl
        {
            float: left;
        }
        .fr
        {
            float: right;
        }
    </style>
    <script type="text/javascript" src="../js/jquery/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../js/jquery_lightbox/jquery.notesforlightbox.js"></script>
    <script type="text/javascript">
        $(function(){
            $(".divPics a").lightBox({
                overlayBgColor:"#666",//图片浏览时的背景色
                overlayOpacity:0.5,//背景色的透明度
                containerResizeSpeed:600//图片切换时的速度    
            });
        });
    </script>
  </head>
  
  <body>
           <div id="divtest">
            <div class="title">
                <span class="fl">我的相册</span>
            </div>
            <div class="content">
                <div class="divPics">
                    <ul>
                        <li>
                            <a href="http://img.mukewang.com/52e489f20001ecfc04480275.jpg" title="第1篇风景图片">
                                <img src="http://img.mukewang.com/52e489f20001ecfc04480275.jpg" alt="" />
                            </a>
                        </li>
                        <li>
                            <a href="http://img.mukewang.com/52e48a1e0001eec804480275.jpg" title="第2篇风景图片">
                                <img src="http://img.mukewang.com/52e48a1e0001eec804480275.jpg" alt="" />
                            </a>
                        </li>
                        <li>
                            <a href="http://img.mukewang.com/52e48a4c00015ad204480275.jpg" title="第3篇风景图片">
                                <img src="http://img.mukewang.com/52e48a4c00015ad204480275.jpg" alt="" />
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
  </body>
</html>

 

posted @ 2015-01-06 15:26  雪中飞雁  阅读(73)  评论(0)    收藏  举报