滑块(jquery.bxslider) “示例图片”
我想要实现的是当它滑动一个 div 时,“身体”背景图像在淡入淡出过渡中发生变化,对主题主题很有用,我是 jquery 的新手,但我了解一点,所以任何帮助表示赞赏
到目前为止,这是我的代码
<head>
<meta charset="utf-8">
<title>Welcome Page Ver.2</title>
<!-- jQuery library (served from Google) -->
<script src="scripts/1.4/jquery.min.js"></script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/plugins/jquery.easing.1.3.js"></script>
<!-- bxSlider Javascript file -->
<script src="scripts/jquery.bxslider.min.js"></script>
<script type="text/javascript" src="scripts/nav.js"></script>
<script type="text/javascript" src="scripts/tinybox.js"></script>
<!-- bxSlider CSS file -->
<link href="jquery.bxslider.css" rel="stylesheet" />
<link href="my.css" rel="stylesheet" />
</head>
<body>
<div class="slider1">
<div class="slide">1</div>
<div class="slide">2</div>
<div class="slide">3</div>
<div class="slide">3</div>
</div>
<script>
$(document).ready(function () {
$('.slider1').bxSlider({
slideWidth: 5000,
minSlides: 1,
maxSlides: 1,
slideMargin: 10,
infiniteLoop: true,
hideControlOnEnd: false,
mode: 'horizontal',
useCSS: false,
easing: 'easeOutElastic',
speed: 2000
});
});
</script>
</body>
我添加了一些示例图片