Javascript supersized.js与wordpress post atachment的集成

Javascript supersized.js与wordpress post atachment的集成,javascript,wordpress,Javascript,Wordpress,关于如何将wordpress post图像附件集成到supersize.js所需的数组中以方便格式化,有什么建议吗 http://buildinternet.com/project/supersized/slideshow/3.1/fade.html 它需要像这样的数组中的图像- 幻灯片:[//幻灯片放映图像 {图像:'http://buildinternet.s3.amazonaws.com/projects/supersized/3.1/slides/quietchaos-kitty.jp

关于如何将wordpress post图像附件集成到supersize.js所需的数组中以方便格式化,有什么建议吗

http://buildinternet.com/project/supersized/slideshow/3.1/fade.html

它需要像这样的数组中的图像-

幻灯片:[//幻灯片放映图像 {图像:'http://buildinternet.s3.amazonaws.com/projects/supersized/3.1/slides/quietchaos-kitty.jpg,标题:“Kitty Gallannaugh的安静混乱”,url:'http://www.nonsensesociety.com/2010/12/kitty-gallannaugh/'}, {图像:'http://buildinternet.s3.amazonaws.com/projects/supersized/3.1/slides/wanderers-kitty.jpg,标题:“Kitty Gallannaugh的流浪者”,网址:http://www.nonsensesociety.com/2010/12/kitty-gallannaugh/'}, {图像:'http://buildinternet.s3.amazonaws.com/projects/supersized/3.1/slides/apple-kitty.jpg,标题:'Applewood by Kitty Gallannaugh',url:'http://www.nonsensesociety.com/2010/12/kitty-gallannaugh/'} ]

我发现了这个- 但不确定如何使其适合阵列

该网站似乎能够在html正文中使用supersize.js和图像

将图像加载到站点后,可以提取src url并将其放入 一个变量。现在,您可以将其输入到超级大小。 确保您为图像提供了一些css以使其显示:无

就这样

$(function() {
    var imgpad = $("img.bgscaler").prop('src');
    jQuery(function($){
        $.supersized({
            slides : [ {image : imgpad, title : 'Achtergrond'} ]
        });
    }); 
});