簡體   English   中英

Pinterest代碼-如何在彈出窗口中打開

[英]Pinterest Code - How to open in a Pop up window

我對所有這些編碼東西都是陌生的,所以請放輕松我...

昨天,我花了數小時在博客上查找和實現Pinterest懸停共享按鈕。 我終於設法安裝了它並了解了代碼。 無論如何,該按鈕都可以正常工作,但是我討厭單擊該按鈕后會在“新標簽”中打開它。 我希望它在彈出窗口中打開...是否有可能做到這一點?

這是我正在使用的代碼,位於我的Blog的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>

基本上,它需要通常在新選項卡中打開的內容,而是在彈出窗口中將其打開

希望這可以幫助

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM