Google plus 如何在Twitter这样的弹出窗口中获得Google plus共享?

Google plus 如何在Twitter这样的弹出窗口中获得Google plus共享?,google-plus,google-plus-one,Google Plus,Google Plus One,Google+图标在悬停时自动共享页面,不需要像其他图标那样单击。有什么办法可以做到这一点,需要像其他人一样点击[fb,twitter],然后像twitter共享图标一样加载到弹出窗口中 JavaScript窗口。open方法将打开一个新窗口。您可以将此技术和实现目标相结合。下面是一个从。只需将您的目标url替换为http://example.com <a href="https://plus.google.com/share?url=http://example.com" oncli

Google+图标在悬停时自动共享页面,不需要像其他图标那样单击。有什么办法可以做到这一点,需要像其他人一样点击[fb,twitter],然后像twitter共享图标一样加载到弹出窗口中

JavaScript
窗口。open
方法将打开一个新窗口。您可以将此技术和实现目标相结合。下面是一个从。只需将您的目标url替换为
http://example.com

<a href="https://plus.google.com/share?url=http://example.com"
  onclick="javascript:window.open('http://example.com','',
  'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');
  return false;">
  <img src="https://www.gstatic.com/images/icons/gplus-64.png" 
    alt="Share on Google+"/>
</a>