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>
<p id="DB_gallery">
<p 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>

<p class="DB_thumLine"></p>

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

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

 

</p>
<p class="DB_imgSet">

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

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

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

<p class="DB_nextBtn"><img src="images/next_off.png" alt="圖片相冊"/></p>

</p>

</p>

<script type="text/javascript">

    $('#DB_gallery').DB_gallery({

        thumWidth: 110,

        thumGap: 8,

        thumMoveStep: 4,

        moveSpeed: 300,

        fadeSpeed: 500

    });

</script>

</center>

</body>

項目圖片:

 

發佈留言