我使用環球免稅店進行幻燈片放映。我想在stage
旁邊放置一個較小的「較大」鏈接。如何使用jQuery和Galleria更新HTML元素?
我有這樣的代碼爲「大」按鈕:
this.fullres = this.create('div', 'fullres');
this.get('fullres').innerHTML = '<a href="#">Larger</a>';
this.appendChild('fullres', this.fullres);
我有這樣的代碼是從頁的自定義字段中每個<img>
的rel=
標籤的全尺寸圖像的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
過得好活動圖像的參考?它有類活躍嗎? – Aly 2011-01-26 22:42:38