widgetoon.js & count.jsoon

widgetoon.js 使用サンプルコード

class=twitter-share-buttoon を指定した場合、一番下のようにwidgetoon_main();を実行してください



        
   <!-- 76px * 61px -->
   <a href="http://twitter.com/share"
   class="twitter-share-buttoon"
   data-url="http://jsoon.digitiminimi.com/"
   data-text="widgetoon.jsでcount.jsoonを使う"
   data-count="vertical"
   data-lang="ja">ツイート</a>



        
   <!-- 101px * 20px -->
   <a href="http://twitter.com/share"
   class="twitter-share-buttoon"
   data-url="http://digitiminimi.com/"
   data-text="digitiminimi Inc"
   data-count="horizontal"
   data-lang="en">Tweet</a>

OnLoad等の後で個別に実行する場合、elementをwidgetoon_ifremplacer(elem)で指定して実行します。

ツイート

        
   <!-- 76px * 61px -->
   <a href="http://twitter.com/share"
   id="third_col_tw_widget"
   data-url="http://digitiminimi.com/"
   data-text="count.jsoonやってるよ"
   data-count="vertical"
   data-lang="ja">ツイート</a><script>widgetoon_ifremplacer(document.getElementById('third_col_tw_widget'));</script
Tweet
        
   <!-- 122px * 28px -->
   <a href="http://twitter.com/share"
   id="yottume"
   data-url="https://t.co/DEldGtMShq"
   data-counturl="http://jsoon.digitiminimi.com/"
   data-text="Revive your tweet counts!"
   data-count="horizontal"
   data-size="large"
   data-lang="en">Tweet</a><script>widgetoon_ifremplacer(document.getElementById('yottume'));</script>
Tweet
        
   <!-- 122px * 28px -->
   <a href="http://twitter.com/share"
   id="qem_d"
   data-url='"http://jsoon.digitiminimi.com/"'
   data-text="Revive your tweet counts!"
   data-count="horizontal"
   data-size="large"
   data-lang="en">Tweet</a><script>widgetoon_ifremplacer(document.getElementById('qem_d'));</script>
Tweet
        
   <!-- 122px * 28px -->
   <a href="http://twitter.com/share"
   id="qem"
   data-url="https://t.co/DEldGtMShq"
   data-counturl='"http://jsoon.digitiminimi.com/"'
   data-text="Revive your tweet counts!"
   data-count="horizontal"
   data-size="large"
   data-lang="en">Tweet</a><script>widgetoon_ifremplacer(document.getElementById('qem'));</script>
Tweet
        
   <!-- 148px * 28px -->
   <a href="http://twitter.com/share"
   id="goj"
   data-url="https://t.co/DEldGtMShq"
   data-counturl="http://jsoon.digitiminimi.com/"
   data-text="Revive your tweet counts!"
   data-count="horizontal"
   data-size="large"
   data-lang="ja">Tweet</a><script>widgetoon_ifremplacer(document.getElementById('goj'));</script>
Tweet
        
   <!-- 125px * 20px -->
   <a href="http://twitter.com/share"
   id="rj"
   data-url="http://jsoon.digitiminimi.com/"
   data-text="Revive your tweet counts!"
   data-count="horizontal"
   data-lang="ja">Tweet</a><script>widgetoon_ifremplacer(document.getElementById('rj'));</script>