<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Swiper demo</title>
    <link rel="stylesheet" href="css/swiper.min.css"/>
    
    <script src="jslib/swiper.js"></script>

    <script>
	    window.onload = function() {
	    		var swiper = new Swiper('.swiper-container', {
		        pagination: '.swiper-pagination',
		        paginationClickable: true,
			    nextButton: '.swiper-button-next',
			    prevButton: '.swiper-button-prev',
			    loop:true
		    });
		};
    </script>

    <style>
	    .swiper-container {
	        width: 500px;
	        height: 500px;
	    }

	    .swiper-slide img{
	    	height:100%;
	    	width:100%
	    }
    </style>
</head>
<body>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide">
            	<img src="p_w_picpaths/1.jpg" />
            </div>
            <div class="swiper-slide">
            	<img src="p_w_picpaths/2.jpg" />
            </div>
            <div class="swiper-slide">
            	<img src="p_w_picpaths/3.jpg" />
            </div>
        </div>
        <!-- 分页按钮 -->
        <div class="swiper-pagination"></div>

        <!-- 导航按钮 -->
	    <div class="swiper-button-prev"></div>
	    <div class="swiper-button-next"></div>
    </div>
</body>
</html>