• 最简单的网页分享代码


    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);
    }

  • 相关阅读:
    dll相关(转载)
    安装VSFTPD时遇到的问题
    WinCE API(转载)
    SSRAM、SDRAM和Flash简要介绍(转载)
    NANO板子调试小结
    使用PowerDesigner 建立企业知识库
    PowerDesigner在CDM取消列名重复
    在X64系统中PowerDesigner无法连接MySQL的解决方法
    左右值无限分类实现算法
    数据库主键设计之思考
  • 原文地址:https://www.cnblogs.com/lein317/p/5067559.html
Copyright © 2020-2023  润新知