일본어홈페이지 페이스북,트위터 등 SNS소셜버튼 달기

일본나까마 0 259 2016.11.26 18:27
일본어홈페이지에 페이스북,트위터,하테나,믹시,구글플러스 소셜버튼 홈페이지에 달기
믹시는 개발자페이지에 등록하여 사이트마다 키를 발급받아야 한다.


<div class="fb-like" data-send="false" data-layout="button_count" data-width="120" data-show-faces="false"></div>

<a id="twitter-share-for-article" href="http://twitter.com/share" class="twitter-share-button" data-via="kimtaku" data-url="" data-text="" data-count="horizontal" data-lang="ja">Tweet</a>

<a id="hatena-bookmark-for-article" href="" class="hatena-bookmark-button" data-hatena-bookmark-title="" data-hatena-bookmark-layout="standard" title="このエントリーをはてなブックマークに追加"><img src="http://b.st-hatena.com/images/entry-button/button-only.gif" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" /></a>

<div data-plugins-type="mixi-favorite" data-service-key="ca05e9be3ff2c00178b089630a991af0bf77fa1d" data-size="medium" data-href="" data-show-faces="false" data-show-count="true" data-show-comment="false" data-width="110"></div><script type="text/javascript">(function(d) {var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true;s.src = '//static.mixi.jp/js/plugins.js#lang=ja';d.getElementsByTagName('head')[0].appendChild(s);})(document);</script>
<g:plusone size="medium"></g:plusone>
<script type="text/javascript">
/* Get UserPrefs Values */
var prefs = new _IG_Prefs();
var articleUrl = prefs.getString('articleUrl');
var articleTitle = prefs.getString('articleTitle');

/* Twitter Share for Article */
var twitterShareForArticleEl = document.getElementById('twitter-share-for-article');
twitterShareForArticleEl.setAttribute('data-url',  articleUrl);
twitterShareForArticleEl.setAttribute('data-text', articleTitle);

/* Hatena Bookmark for Article */
var hatenaBookmarkForArticleEl = document.getElementById('hatena-bookmark-for-article');
hatenaBookmarkForArticleEl.href = 'http://b.hatena.ne.jp/entry/' + articleUrl;
hatenaBookmarkForArticleEl.setAttribute('data-hatena-bookmark-title', articleTitle);

</script>
<!-- Twitter Share for Article -->
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<!-- Hatena Bookmark for Article -->
<script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>

Comments