zoukankan      html  css  js  c++  java
  • 最简单的网页分享代码

    function makeShare(url, title){
    	//http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http%3A%2F%2Fwww.jiathis.com%2Fhelp%2Fhtml%2Fqzone-share-code%23jtss-qzone&title=%E5%88%86%E4%BA%AB%E5%88%B0QQ%E7%A9%BA%E9%97%B4%E4%BB%A3%E7%A0%81&pics=&summary=%E5%85%B3%E4%BA%8EQQ%E7%A9%BA%E9%97%B4%EF%BC%9AQQ%E7%A9%BA%E9%97%B4%EF%BC%88
    	var share_urls ={
    		qq_space:['http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(title)+'&pics='+(arguments.length>2?arguments[2]:'')+'&summary='+encodeURIComponent(title),'QQ空间'],
    		sina:['http://service.weibo.com/share/share.php?appkey=583395093&title='+title+'&url='+encodeURIComponent(url)+'&source=bshare&retcode=0&ralateUid=','新浪微博'],
    		qq_weibo:['http://share.v.t.qq.com/index.php?c=share&a=index&title='+title+'&site='+encodeURIComponent(url)+'&appkey=dcba10cb2d574a48a16f24c9b6af610c&assname=${RALATEUID}','QQ微博'],
    		renren:['http://widget.renren.com/dialog/share?resourceUrl='+encodeURIComponent(url)+'&title='+title+'&images=&description=','人人网'],
    		kaixin:['http://www.kaixin001.com/login/open_login.php?flag=1&url='+encodeURIComponent('/rest/records.php?url='+url+'&content='+title+'&pic=&starid=&aid=100013770&style=111'),'开心网'],
    		taobao:['http://login.taobao.com/member/login.jhtml?redirect_url='+encodeURIComponent('http://share.jianghu.taobao.com/share/addShare.htm?url='+url+'&title='+title),'淘宝网']
    		};
    	var html = '<ul class="share_div">';
    	for(var i in share_urls)
    	{
    		html+='<li><a style="auto" href="'+share_urls[i][0]+'" target="_blank" >'+share_urls[i][1]+'</li>';
    	}
    	html+='</ul>';
    	
    	$('#share_span').html(html);
    }

  • 相关阅读:
    android常用组件
    android button点击效果
    service+activity
    收藏
    c++
    工厂模式
    lr常遇到一些问题
    lr介绍
    ((1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) NOT NULL)' at line 1"))
    mysqlclient 1.4.0 or newer is required; you have 0.10.0
  • 原文地址:https://www.cnblogs.com/lein317/p/5067559.html
Copyright © 2011-2022 走看看