我正在运行一个bg滑块...“Supersized - Fullscreen Slideshow jQuery Plugin”
我需要的是当背景改变特定div中的某些内容时也必须改变......
这里我发现了一个来自脚本的代码行
if (options.slide_captions)
$('#slidecaption').html(options.slides[currentSlide].title);
这个将图片标题拉到特定的div,但我想为每个背景更改加载唯一的div ...
还是有其他办法吗?
我对jquery知之甚少...... 请帮忙
提前谢谢......
答案 0 :(得分:0)
你可以这样写:
if (options.slide_captions) $('#slidecaption').html(options.slides[currentSlide].title, function(){
//write the code that load the unique div
});
告诉我它是否有效
答案 1 :(得分:0)
http://buildinternet.com/project/supersized/docs.html#theme-after
查看theme.afterAnimation( )
文档。您可以将其设置为在幻灯片更改后更改内容的功能。