Note that there are some explanatory texts on larger screens.

plurals
  1. POTumblr custom share button on Blogger - open pop up window
    primarykey
    data
    text
    <p>I am trying to create a share button from blogger to tumblr under my posts. Using advanced options I almost achieved my goal but instead of opening a new window the code is using the same tab as the shared post and hangs on the last second when it should close the tab.</p> <p>How to alter the code to open a nice pop up?</p> <pre><code>&lt;!-- Put this tag wherever you want your button to appear --&gt; &lt;span id="tumblr_button_abc123"&gt;&lt;/span&gt; &lt;!-- Set these variables wherever convenient --&gt; &lt;script type="text/javascript"&gt; var tumblr_link_url = "http://www.example.com/permalink/my-article"; var tumblr_link_name = "My Awesome Article"; var tumblr_link_description = "Lorem ipsum..."; &lt;/script&gt; &lt;!-- Put this code at the bottom of your page --&gt; &lt;script type="text/javascript"&gt; var tumblr_button = document.createElement("a"); tumblr_button.setAttribute("href", "http://www.tumblr.com/share/link?url=" + encodeURIComponent(tumblr_link_url) + "&amp;name=" + encodeURIComponent(tumblr_link_name) + "&amp;description=" + encodeURIComponent(tumblr_link_description)); tumblr_button.setAttribute("title", "Share on Tumblr"); tumblr_button.setAttribute("style", "display:inline-block; text-indent:-9999px; overflow:hidden; width:20px; height:20px; background:url('http://platform.tumblr.com/v1/share_4.png') top left no-repeat transparent;"); tumblr_button.innerHTML = "Share on Tumblr"; document.getElementById("tumblr_button_abc123").appendChild(tumblr_button); &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload