0
嘿。下面的代码用于在Facebook上分享内容。但是当我点击分享按钮时,它正在打开新窗口。Facebook共享问题?
我不想要这个。我想打开一个新的div。我能怎么做?
<script>
function fbs_click()
{
u=location.href;
t=document.title;
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
return false;
}
</script>
<style>
html .fb_share_link { padding:2px 0 0 20px; height:16px; background:url(http://static.ak.facebook.com/images/share/facebook_share_icon.gif?6:26981) no-repeat top left; }
</style>
<a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" onclick="return fbs_click()" target="_blank" class="fb_share_link">
Facebook'ta paylaş
</a>
我读过的地方,股份被丢弃或类似的东西,而应该使用'喜欢'按钮 – BrunoLM 2011-05-04 11:51:53