0
我有一些HTML,看起來像這樣,sharethis和jQuery幫助
<div class="suit-gallery">
<img src="../images/galleries/business/DSC_0035_sm.jpg" alt="Stylish button 2 business suit with contrast buttonholes light weight high twist cool wool" width="164" height="247" />
<div class="suit-gallery-btn">
<a href="../images/galleries/business/DSC_0035.jpg" rel="lightbox[business]" title="Stylish button 2 suit with contrast buttonholes light weight high twist cool wool Holland & Sherry from £695, choice of 90 designs/colours">Click for more information</a>
</div>
</div>
<div class="suit-gallery">
<img src="../images/galleries/business/DSC_0010_sm.jpg" alt="Classic button 2 business suit with an out ticket pocket. Grey wool Holland & Sherry Perennial" width="164" height="247" />
<div class="suit-gallery-btn">
<a href="../images/galleries/business/DSC_0010.jpg" rel="lightbox[business]" title="Classic button 2 suit with an out ticket pocket. Grey wool Holland & Sherry Perennial from £895, choice of 120 designs/colours" >Click for more information</a>
</div>
</div>
<div class="clear"> </div>
<div class="suit-gallery">
<img src="../images/galleries/business/DSC_0024_sm.jpg" alt="Modern 2 button business suit grey 100% Yorkshire worsted" width="164" height="247" />
<div class="suit-gallery-btn">
<a href="../images/galleries/business/DSC_0024.jpg" rel="lightbox[business]" title="Modern 2 button suit 100% Yorkshire worsted from £795 choice of 85 designs/colours" >Click for more information</a>
</div>
我想一個sharethis郵件鏈接到的.suit-gallery-btn
每個實例,但是我不知道如何做到這一點,我也喜歡一個標題鏈接的鏈接進入標題選項,也圖像URL到圖像選項,下面是我目前,
jQuery(document).ready(function(){
stWidget.addEntry({
"service":"email",
"element": document.getElementById('button_1'),
"url":"http://sharethis.com",
"title":"What do you think to this suit?",
"type":"large",
"text":"What do you think to this suit?" ,
"image": "",
"summary":""
});
});
我也知道,我將不得不選擇基於一個元素而不是ID,我需要爲此做很多.suit-gallery-btn
有。
我完全失去了。
非常感謝,我怎樣才能停止sharethis小部件只顯示每個按鈕相同的信息?如果我在其中一個鏈接上觸發小部件,那麼數據將用於所有共享按鈕 – Udders