[HTML] 纯文本查看 复制代码
<!DOCTYPE HTML Powered By "EMewCMS By 287064290@qq.com">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<meta name="keywords" content=""/>
<!-- Mobile Devices Support @begin -->
<meta content="telephone=no, address=no" name="format-detection">
<meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<!-- Mobile Devices Support @End -->
<link rel="stylesheet" type="text/css" href="static/css/moban.css">
<link rel="stylesheet" href="static/css/swiper.min.css">
<script type="text/javascript" src="static/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="static/js/swiper.min2.js"></script>
<script>
$(document).ready(function(){
$(".moban_sc a").each(function(){
if($(this).attr("href")==""){
$(this).css("display","none");
}
});
});
</script>
<style>
body{
background:#f5ece3
}
</style>
</head>
<body>
<div id="moban">
<img src="2/1.jpg" width="100%">
<!-- Swiper -->
<div class="swiper-container">
<div class="swiper-wrapper">
["2/1.jpg","2/2.jpg","2/3.jpg","2/4.jpg","2/5.jpg","2/6.jpg","2/7.jpg","2/8.jpg"]
</div>
<div class="swiper-wrapper">
["3/1.jpg","3/2.jpg","3/3.jpg","3/4.jpg","3/5.jpg","3/6.jpg","3/7.jpg","3/8.jpg"]
</div>
<div class="swiper-wrapper">
["2/1.jpg","2/2.jpg","2/3.jpg","2/4.jpg","2/5.jpg","2/6.jpg","2/7.jpg","2/8.jpg"]
</div>
<div class="swiper-wrapper">
["3/1.jpg","3/2.jpg","3/3.jpg","3/4.jpg","3/5.jpg","3/6.jpg","3/7.jpg","3/8.jpg"]
</div>
<div class="swiper-wrapper">
["2/1.jpg","2/2.jpg","2/3.jpg","2/4.jpg","2/5.jpg","2/6.jpg","2/7.jpg","2/8.jpg"]
</div>
<div class="swiper-wrapper">
["3/1.jpg","3/2.jpg","3/3.jpg","3/4.jpg","3/5.jpg","3/6.jpg","3/7.jpg","3/8.jpg"]
</div>
<div class="swiper-wrapper">
["2/1.jpg","2/2.jpg","2/3.jpg","2/4.jpg","2/5.jpg","2/6.jpg","2/7.jpg","2/8.jpg"]
</div>
<div class="swiper-wrapper">
["3/1.jpg","3/2.jpg","3/3.jpg","3/4.jpg","3/5.jpg","3/6.jpg","3/7.jpg","3/8.jpg"]
</div>
</div>
<script type="text/javascript">
$.each($(".swiper-wrapper"), function(i, item) {
var jq_item = $(item);
var str_json = jq_item.html();
var html_temp = "";
if (str_json.length > 0) {
var arr = JSON.parse(str_json);
$.each(arr, function(i_s, item_s) {
html_temp += '<div class="swiper-slide"><img src="' + item_s + '" /></div>';
});
}
jq_item.html(html_temp);
});
</script>
</div>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
spaceBetween: 30,
centeredSlides: true,
autoplay: {
delay: 3500,
disableOnInteraction: false,
},
});
</script>
</body>
</html>