将以下代码添加到您的网站,在head标签内:
<script> function SocialShare(url) { window.open('https://www.loudook.com/share?url=' + url, '', 'height=600,width=800'); } </script>
然后在修改后的页面HTML中放置分享按钮:
<button onclick="SocialShare('http://yoursite.com/')">Share</button>
您也可以使用此代码分享当前页面:
<button onclick="SocialShare(window.location.href)">Share</button>