我正在使用 Galleria 进行幻灯片放映。我想在stage
.
我有“更大”按钮的代码:
this.fullres = this.create('div', 'fullres');
this.get('fullres').innerHTML = '<a href="#">Larger</a>';
this.appendChild('fullres', this.fullres);
我有这段代码将每个<img>
'srel=
标签分配给页面自定义字段中的全尺寸图像 URL:
<img ... rel="<?=$attachments[$i]['fullres']?>" />
使用 JQuery,我希望提取active
图像的rel=
标签值并附加.fullres href
标签。这是我到目前为止的代码,但它不起作用:
var title = $(.images).attr('rel'); // pulls the fullres url from the rel tag
$('.galleria-fullres').attr('href', ); //append the galleria fullres href with the rel info