0
裏面我有這個在我的WordPress迴路後:。點擊()循環
function newWindow(uri,width,height) {
if(!window.open(uri,uri,'scrollbars=1,toolbar=0,resizable=1,status=0,width='+width+',height='+height)) {
document.location.href=uri;
}
}
$('.facebook_button').click(function() {
newWindow('http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>',720,420);
return false;
});
所以當我按一下按鈕,它會打開多個窗口(10 10個職位的索引頁)。有沒有辦法打開僅用於發佈按鈕?
謝謝!
很好的使用散列函數:) –
'$('#facebook_button_ <?echo $ post-> ID;?>')'同樣適用。 –