0
我正在使用BXslider,我希望更新图像。 这是代码片段:使用Jquery更新图像
$(function(){
$('#slider1').bxSlider({
auto: true,
pager: true,
buildPager: function(slideIndex){
switch (slideIndex){
default:
return '<a href=""><img src="/images/loginPage/dot_empty.png" style="margin:2px;" /></a>';
}
}
});
});
使用的CSS是: -
a.pager-active > img{
border-bottom: 2px solid #DE312A !important;
background: url("/images/loginPage/dot_filled.png") no-repeat scroll 1px 0 !important;
z-index:2;
}
.bx-pager a{
text-decoration:none;
color:transparent;
}
.bx-pager a > img{
border-bottom: 2px solid blue;
z-index:0;
//background: url("/images/loginPage/dot_filled.png") no-repeat scroll 1px 0 transparent;
}
精灵形象是:
请给我建议的方式来更新图片src,我尝试使用CSS条纹以及。 在此先感谢!
请提供您的输入 – vedvrat13