我试图应用此代码:
nextText: '<img src="images/nextImgBtn.png" onmouseover="this.src='images/overnextImgBtn.png'" onmouseout="this.src='images/nextImgBtn.png '">',
prevText: '<img src="images/prevImgBtn.png" onmouseover="this.src='images/hoverprevImgBtn.png '" onmouseout="this.src='images/prevImgBtn.png '">'
到jquery的这个准备调用函数
$(document).ready(function () {
$('.slider1').bxSlider({
slideWidth: 1050,
minSlides: 1,
maxSlides: 1,
slideMargin: 10,
infiniteLoop: true,
hideControlOnEnd: false,
mode: 'horizontal',
video: true,
useCSS: false,
easing: 'easeOutElastic',
speed: 2000,
pagerCustom: '#bx-pager',
nextSelector: '#slider-next',
prevSelector: '#slider-prev',
nextText: '<img src="images/nextImgBtn.png" onmouseover="this.src='
images / hovernextImgBtn.png '" onmouseout="this.src='
images / nextImgBtn.png '">',
prevText: '<img src="images/prevImgBtn.png" onmouseover="this.src='
images / hoverprevImgBtn.png '" onmouseout="this.src='
images / prevImgBtn.png '">'
});
});