Share on Tumblr

var tumblr_link_url = “”; var tumblr_link_name = “My Awesome Article”; var tumblr_link_description = “Lorem ipsum…”;

var tumblr_button = document.createElement(“a”); tumblr_button.setAttribute(“href”, “” + encodeURIComponent(tumblr_link_url) + “&name=” + encodeURIComponent(tumblr_link_name) + “&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:61px; height:20px; background:url(‘’) top left no-repeat transparent;”); tumblr_button.innerHTML = “Share on Tumblr”; document.getElementById(“tumblr_button_abc123”).appendChild(tumblr_button);


Tinggalkan Balasan

Please log in using one of these methods to post your comment:


You are commenting using your account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )


Connecting to %s