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;?>')'同样适用。 –