插件调用方法
var chongfu1 =$('.slider .focus_img ul').html();
$('.slider .focus_img ul').append(chongfu1).append(chongfu1).append(chongfu1);
var chongfu2 =$('.slider .focus_nav ul').html();
$('.slider .focus_nav ul').append(chongfu2).append(chongfu2).append(chongfu2);
var chongfu3 =$('.slider .focus_text ul').html();
$('.slider .focus_text ul').append(chongfu3).append(chongfu3).append(chongfu3);
jQuery(".slider .focus_img li").first().before(jQuery(".slider .focus_img li").last());
jQuery(".slider").hover(function() {
jQuery(this).find(".focus_text").fadeIn("slow");
}, function() {
jQuery(this).find(".focus_text").fadeOut("slow");
});
jQuery(".slider").slide({
titCell: ".focus_nav li",
mainCell: ".focus_img ul",
targetCell: ".focus_text li",
prevCell: ".prev",
nextCell: ".next",
effect: "leftLoop",
easing:"easeInExpo",
autoPlay: true,
pnLoop:true,
delayTime:500,
interTime:4500,
mouseOverStop:true,
startFun: function(i) {
if (i == 0) {
jQuery(".slider .navPrev").click()
} else if (i % 4 == 0) {
jQuery(".slider .navNext").click()
}
}
});
jQuery(".slider").slide({
mainCell: ".focus_nav ul",
prevCell: ".navPrev",
nextCell: ".navNext",
effect: "leftLoop",
vis:5,
scroll:5,
delayTime:500,
autoPage:true,
pnLoop:true,
});