当前位置:编程学习 > JAVA >>

jQuery模拟QQ相册

<head>
    <title></title>
    <link href="css/DB_gallery.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="js/jquery.DB_gallery.js" type="text/javascript"></script>
</head>
<body>
<center>
<div id="DB_gallery">
<div class="DB_thumSet">


<ul class="DB_thumMove">


<li><a href="images/img1.jpg"><img src="images/img1_num.jpg" alt="图片相册"/></a></li>


<li><a href="images/img2.jpg"><img src="images/img2_num.jpg" alt="图片相册"/></a></li>


<li><a href="images/img3.jpg"><img src="images/img3_num.jpg" alt="图片相册"/></a></li>


<li><a href="images/img4.jpg"><img src="images/img4_num.jpg" alt="图片相册"/></a></li>


<li><a href="images/img5.jpg"><img src="images/img5_num.jpg" alt="图片相册"/></a></li>


<li><a href="images/img6.jpg"><img src="images/img6_num.jpg" alt="图片相册"/></a></li>


<li><a href="images/img7.jpg"><img src="images/img7_num.jpg" alt="图片相册"/></a></li>


<li><a href="images/img8.jpg"><img src="images/img8_num.jpg" alt="图片相册"/></a></li>


 
</ul>


<div class="DB_thumLine"></div>


<div class="DB_prevPageBtn"><img src="images/prev_page.png" alt="上一页"/></div>


<div class="DB_nextPageBtn"><img src="images/next_page.png" alt="下一页"/></div>

 


</div>
<div class="DB_imgSet">


<div class="DB_imgWin"><img src="images/img1.jpg" alt=""/></div>


<div class="DB_page"><span class="DB_current">0</span>-<span class="DB_total">0</span></div>


<div class="DB_prevBtn"><img src="images/prev_off.png" alt="jquery相册"/></div>


<div class="DB_nextBtn"><img src="images/next_off.png" alt="图片相册"/></div>


</div>

</div>


<script type="text/javascript">


    $('#DB_gallery').DB_gallery({


        thumWidth: 110,


        thumGap: 8,


        thumMoveStep: 4,


        moveSpeed: 300,


        fadeSpeed: 500


    });


</script>


</center>

</body>

项目图片:

 


补充:web前端 , JavaScript ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,