【问题标题】:Supersized: external link to a specific photo?超大:特定照片的外部链接?
【发布时间】:2013-02-21 22:42:42
【问题描述】:

我正在为图片库使用Supersized jQuery 插件。

如何从外部页面链接到超大画廊中的特定图片?

这是我的 jquery 页面代码:

jQuery(函数($){

 $.supersized({

slideshow:   1, 
autoplay: 0,            
start_slide : document.write (location
                                .hash
                                .replace(/^#/,'')
                                  .replace(/im=([0-9]+).*$/,'$1')),

stop_loop: 0,           
random: 0,

....等等......
slide_links:'num',
拇指链接:1,
缩略图导航:0,
幻灯片:[

{图片:'photos/BE_oct14-4.jpg',标题:'slide0',拇指:'',网址:''}, {图片:'photos/cinqueterre-4.jpg',标题:'slide1',拇指:'',网址:''},

以及来自外部 html 页面的链接:

【问题讨论】:

    标签: jquery supersized


    【解决方案1】:

    您可以在将本地图片添加到幻灯片数组时添加外部图片:

    slides : [
        {image : 'http://externalURL/pic01.jpg', title : 'pic01', thumb : 'http://externalURL/pic01T.jpg', url : 'http://anyUrl'},
        {image : 'http://externalURL/pic02.jpg', title : 'pic02', thumb : 'http://externalURL/pic02T.jpg', url : 'http://anyUrl'},
        {image : 'localPath/pic01.jpg', title : 'pic01_l', thumb : 'localPath/pic01T.jpg', url : 'http://anyUrl'}
    ]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-06
      相关资源
      最近更新 更多