首页 > 特效插件 > 滚动轮播 >  jquery真实的前后翻页效果代码正文

jquery真实的前后翻页效果代码

特效介绍
jquery真实的前后翻页效果代码

jquery真实的前后翻页效果代码。鼠标点击Previous和next按钮,图片向上或者向下翻到最后面或者翻到最前面。兼容IE6
使用方法
1、在head区域引入下面的代码:
<link rel="stylesheet" type="text/css" media="screen" href="css/reset.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/960.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/demo.js"></script>
2、把以下代码拷贝到你想引用的地方
<div class="grid_6 prefix_1 suffix_1" id="gallery">
    <div id="pictures">
        <img src="images/picture1.png" alt="" />
        <img src="images/picture2.png" alt="" />
        <img src="images/picture3.png" alt="" />
        <img src="images/picture4.png" alt="" />
        <img src="images/picture5.png" alt="" />
    </div>
    <div class="grid_3 alpha" id="prev">
        <a href="#previous">&laquo; Previous Picture</a>
    </div>
    <div class="grid_3 omega" id="next">
        <a href="#next">Next Picture &raquo;</a>
    </div>
</div>