背負い投げとENTER_FRAME

Icon

なんちゃってWebクリエイターがFlashやらActionScriptやらを淡々と書く。ときとき柔道の話しもする。

中国のSNSシェアスクリプト

前中国の仕事で、中国SNSを絡む機会があったので、
情報をシェアする。

中国の人気SNS(主観)

  • Sina Weibo(新浪) - 人気No.1確実
  • QQ(騰信) – 二番手
  • renren(人人) – Facebookみたいな
  • kaixin(開心網) – よく知らない、多分有名
  • douban(豆瓣) – よく知らない、有名じゃないかも
  • まとめてシェアするJavaScript

    
    function postToWb(sns_name){
    	
    	var _url = encodeURIComponent(document.location);
    	var _title = document.title;
    	var _u = '';
    	
    	_title = encodeURI(_title);
    	
    	if( sns_name == 'sina' )
    	{
    		_u = 'http://service.weibo.com/share/share.php?url='+_url+'&title='+_title;
    	}else if( sns_name == 'qq' ){
    		_u = 'http://share.v.t.qq.com/index.php?c=share&a=index&url=' + _url + '&title=' + _title;
    	}else if( sns_name == 'ren' ){
    		_u = 'http://share.renren.com/share/buttonshare?link=' + _url + '&title=' + _title;
    	}else if( sns_name == 'kaixin' ){
    		_u = 'http://www.kaixin001.com/repaste/bshare.php?rtitle=' + _title + '&rurl=' + _url;
    	}else if( sns_name == 'douban' ){
    		_u = 'http://shuo.douban.com/!service/share?href=' + _url + '&name=' + _title;
    	}
    	
    	window.open( _u );
    }
    

    HTML実装

    <a href="javascript:void(0)" onclick="postToWb('sina');">シェア - 新浪</a>
    <a href="javascript:void(0)" onclick="postToWb('qq');">シェア - 騰信</a>
    <a href="javascript:void(0)" onclick="postToWb('ren');">シェア - 人人</a>
    <a href="javascript:void(0)" onclick="postToWb('kaixin');">シェア - 開心網</a>
    <a href="javascript:void(0)" onclick="postToWb('douban');">シェア - 豆瓣</a>
    

    各SNSのドキュメント

    新浪:http://open.weibo.com/sharebutton
    騰信:http://open.t.qq.com/apps/share/explain.php
    人人:http://wiki.dev.renren.com/wiki/Share.share
    開心網:http://www.kaixin001.com/platform/?app=repaste
    豆瓣:知らない…

    このエントリーをはてなブックマークに追加  

    Category: WEB全般

    Tagged: ,

    55 Responses

    1. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your
      website? My blog site is in the very same area of interest as yours and my visitors would certainly benefit from a
      lot of the information you present here. Please let me know if this okay
      with you. Cheers!

    2. Ulrike より:

      If some one wishes to be updated with hottest technologies therefore he must
      be go to see this web site and be up to date all the time.

    3. Hello There. I found your blog the use of msn. That is a really well written article.
      I will make sure to bookmark it and come back to read more of your helpful information.
      Thanks for the post. I’ll definitely return.

    4. I have been exploring for a little for any high quality articles
      or blog posts on this kind of house . Exploring
      in Yahoo I finally stumbled upon this website. Reading this
      info So i am glad to convey that I have a very
      just right uncanny feeling I came upon just what I
      needed. I so much for sure will make certain to don?t fail to remember this site and
      provides it a look on a continuing basis.

    5. jumelles より:

      There’s certainly a great deal to learn about this issue.
      I like all the points you’ve made.

    Leave a Reply

    中の人のプロフィール

    柔道歴約20年だが諸理由で未だ初段。162cm、60kgくらいの軽量級。得意は背負い投げと巴投げ。2009年、左ヒザ前十字靭帯損傷。ただ今柔道復帰を企んでいる真っ最中。仕事では最近、ActionScriptを書いたり、WordPressをいじったりの日々が続いてる。@renowanにてつぶやいてる。

    アーカイブ

    Flicker

    This movie requires Flash Player 9.0.0