我在jquery工具覆盖中使用flexslider
我想访问显示和隐藏叠加层的滑块。
var slideToJumpTo = 5; //this changes
var modals = ({
init: function(){
$("div[rel]").overlay({
onBeforeLoad: function() {
//I want to be able to access the flexslider here.
//So I can do something like $('slider').jumpToSlide(slideToJumpTo) - dummy code
},
onLoad: function() {
$.getScript('/js/libs/jquery.flexslider-min.js', function() {
if ($('.overlay-carousel').length > 0) {
$('.overlay-carousel').flexslider({
});
}
});
},
onClose:function(){
}
});
}
});
我应该如何引用滑块?