Pinterest代码-如何在弹出窗口中打开

Pinterest Code - How to open in a Pop up window

本文关键字:窗口 代码 Pinterest      更新时间:2023-09-26

我对所有这些编码都是新手,所以请对我放松…

昨天,我花了几个小时在博客上找到并实现了一个Pinterest悬停共享按钮。我终于安装好了,并理解了代码。不管怎样,这个按钮显示得很好,也能工作,但我讨厌当点击按钮时,它会在新选项卡中打开。我希望它能在弹出窗口中打开。。。有可能做到这一点吗?

这是我正在使用的代码,它在我博客的HTML区域。

<script>
//<![CDATA[
var bs_pinButtonURL = "http://2.bp.blogspot.com/-rwtYRUjgDok/UiJ-EfGfrbI/AAAAAAAAAXg/QXRpDUzaa6s/s1600/Pinterest+Red.png";
var bs_pinButtonPos = "topright";
var bs_pinPrefix = "";
var bs_pinSuffix = "";
//]]>
</script>
    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'/>
<script id='bs_pinOnHover' src='http://greenlava-code.googlecode.com/svn/trunk/publicscripts/bs_pinOnHoverv1_min.js' type='text/javascript'>
// Visit http://www.bloggersentral.com/2012/11/pinterest-pin-it-button-on-image-hover.html for details.
</script>

希望有人能帮我,谢谢

这就是我使用的。

<div class="sprite pintrest-logo" onclick="window.open(
'//pinterest.com/pin/create/button/?url=SITE_URL&amp;media=MEDIA_URL&amp;description=DESCRIPTION,
//'facebook-share-dialog', I honestly cannot remember if this is necessary and am not able to test currently. Will update when I find out
'width=750,height=288');    
return false;"></div>

基本上,它接受通常在新选项卡中打开的东西,而不是在弹出窗口中打开它

希望这能帮助