1、新浪微博
<scrip ttype="text/javas cript "chars et="utf-8">
(funct ion(){var_w=72,_h=16;var param={url:locat ion.href,typ e:'3',c ount :'1', /**是否显示分享数 1显示(可选)*/appke y:'', /**您申请的应用appk ey,显示分享来源(可选)*/title :'', /**分享的文字内容(可选默认为所在页面的ti tle)*/pic:' ', /**分享图片的路径(可选)*/ralat eUid:' ', /**关联用户的UID分享微博会@该用户(可选)*/langu age:'zh_c n',/**设置语言 zh_c n|zh_tw(可选)*/dpc:1
}var temp=[];for(var p in param){temp.push(p+'='+encod eURIC ompon ent(param[p] | | ' ' ) )
}docum ent.write ('<ifram e allow Trans paren cy="true" frame borde r="0" scrol ling="no"src="http://servi ce.weibo.com/stati cjs/weibo share.html?' + temp.join('&') +'"width="'+_w+'"heigh t="'+_h+'"></ifram e>')
})()
</scrip t>
2、腾讯空间
<scrip ttype="text/javas cript ">
(funct ion(){var p={url:locat ion.href,showc ount:'1',/*是否显示分享总数,显示 '1' 不显示 '0' */desc:' ',/*默认分享理由(可选)*/summa ry:'',/*分享摘要(可选)*/title :'',/*分享标题(可选)*/site:' ',/*分享来源如腾讯网(可选)*/pics:' ', /*分享图片的路径(可选)*/s tyle :'203',w idth:98,heigh t:22
};var s=[];for(var i in p){s.push(i+'='+encod eURIC ompon ent(p[i]| | ' '));
}docum ent.write (['<a versi on="1.0" class ="qzOpe nerDi v" href="http://sns.qzone
.qq.com/cgi-bin/qzsha re/cgi_q zshar e_one key?',s.join('&'),'" targe t="_blan k">分享</a>'].join(' '));})();
</scrip t>
<scrip t src="http://qzone style .gtimg.cn/qzone /app/qzlik e/qzope nsl.js#jsdat e=20111 201" charset="utf-8"></scrip t>
3、腾讯微博
<a href="javascript:void(0)" onclick="postToWb() ;" class="tmblog"><imgsrc="http://v. t.qq.com/share/images/s/weiboicon16.png"></a> < scripttype="text/javascript">function postToWb() {var _t = encodeURI(document. title) ;var _url = encodeURI(document. location) ;var _appkey = encodeURI("appkey") ;//你从腾讯获得的appkeyvar _pic = encodeURI(' ' ) ;// 列如 var _pic='图片url1 |图片url2|图片url3. . . . var _site = ' ' ;//你的网站地址var _u =
'http://v. t.qq.com/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic;window.open( _u, '转播到腾讯微博' , ' width=700, height=680, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, location=yes,resizable=no, status=no' ) ;
}
</script>
4、人人网
<scrip ttype="text/javas cript "src="http://widge t.renre n.com/js/rrsha re.js"></scrip t>
<a name="xn_sh are"oncli ck="share Click()" type="icon_mediu m"href="javas cript :;"></a><scrip ttype="text/javas cript ">funct ion share Click() {var rrSha rePar am={resou rceUr l : '', //分享的资源UrlsrcUr l: ' ',//分享的资源来源Url,默认为he ader中的Refe rer,如果分享失败可以调整此值为re sourc eUrl试试pic : ' ', //分享的主题图片Urltitle : '', //分享的标题descriptio n: '' //分享的详细描述
};rrSha reOnc lick(rrSha rePar am);
}
</scrip t>
5、 网易
<script type="text/javascript" charset="utf-8"> (function() { functionshowKeyShare() {var param=[] ,ustr=[] ; param[0] ='key=aNlaHmpG8w7VKvNj' ;
//转发来源param[1] = 'url=' + window. locat ion.href; //当前页网址param[2] = ' togImg=true' ; //默认显示转发图片(可选删除true为不显示)param[3] = ' images=' ; //images为传过来的图片地址多个图片地址用", "隔开若为空会自动抓取转发页面图片url = 'http://api. t. 163.com/share?' ;url += param. join("&") ; ustr[0] = 'height=330,width=550, top=' +(screen.height - 280) / 2 ; ustr[1] = ' left=' + (screen.width - 550) /2 ; ustr[2] = ' toolbar=no, menubar=no, scrollbars=no, ' ; ustr[2] +='resizable=yes, location=no, status=no' ; var s =ustr. join(' , ' ) ;window.open(url, 'newwindow' , s) ; } ;window. showKeyShare=showKeyShare; } ) () ; < /script> < astyle="display:block;width: 16px;height: 16px;background-image:url (http://static. t. 126.net/frontend/open/image/sprites/key_v111213.png) ;background-position:0px -210px;background-repeat:no-repeat;"href="javascript: ;" onclick="showKeyShare()" > </a>
6、一键分享
<div class="bsync-custo m icon-blue"><a title="一键分享到各大微博和社交网络" class="bshare-bsync "oncli ck="javas cript :bSync.share(event )">一键分享</a><span class="BSHAR E_COUNT bshar e-share -count ">0</span></div> <scrip t type="text/javas cript " chars et="utf-8"src="http://stati c.bshar e.cn/b/bsync .js#uuid="></s crip t>
7、百度搜藏
<a href="javascript:var u=location.href;vart=document. title; t=t. substr (0, 80)+'by:Addthis.org. cn' ;varc=' '+(window. getSelection?window. getSelection() :document. getSelection?document. getSelection() :document. selection. createRange() . text) ;c=c. substr (0, 280) ;var e=encodeURIComponent;varurl='http: //cang.baidu. com/do/add?it='+e(t)+'&iu='+e(u)+' ' ;window.open(url, 'addthis.org. cn' , ' toolbar=0, resizable=1, scrol lbars=yes, status=1,width=600,height=450' ) ;void(0) ">百度搜藏</a>
百度空间
<a href="javascript:var u=location.href;vart=document. title; t=t. substr (0, 80)+'by:Addthis.org. cn' ;varc=' '+(window. getSelection?window. getSelection() :document. getSelection?document. getSelection() :document. selection. createRange() . text) ;c=c. substr (0, 280) ;var e=encodeURIComponent;varurl='http: //apps.hi.baidu. com/share/?url='+e(u)+'&title='+e(t)+' ' ;window.open(url, 'addthis.org. cn' , ' toolbar=0, resizable=1, scrol lbars=yes, status=1,width=600,height=450' ) ;void(0) ">分享到百度空间</a>
8、分享到开心网
<script type="text/javascript">document.writeln("<ahref=\"javascript:window.open(\'http: \/\/www.kaixin001. com\/repaste\/share.php?rtitle=\'+encodeURIComponent (document. title. substring(0, 76) )+\'&rurl=\'+encodeURIComponent (location.href)+\'&rcontent=<%=description%>\' ,\' _blank\' ,\' scrol lbars=no,width=600,height=450, left=75, top=20, status=no, resizable=yes\' ) ; void 0\"style=\"color:#000000; text-decoration:none; font-size: 12px; font-weight:normal\"><img alt=\"分享到开心网\" src=\"http: //static. 51mdq. com/images/kaixin. gif\"/><\/a>") ;
</script>
9、腾讯朋友
<scrip ttype="text/javas cript ">
(funct ion(){var p={url:locat ion.href,to:'pengy ou',desc:' ',/*默认分享理由(可选)*/summa ry:''/*摘要(可选)*/title :'',/*分享标题(可选)*/site:' ',/*分享来源如腾讯网(可选)*/pics:' ' /*分享图片的路径(可选)*/
};var s=[];for(var i in p){s.push(i+'='+encod eURIC ompon ent(p[i]| | ' '));
}docum ent.write(['<a href="http://sns.qzone.qq.com/cgi-bin/qzsha re/cgi_q zshar e_onekey?',s.join('&'),'" targe t="_blan k"title="分享到腾讯朋友"><img src="http://imgcache.qq.com/qzone_v6/proj_conne ct_op en/img/share/share_py_16.png"alt="分享到腾讯朋友"borde r="0" /></a>'].join(' '));
})();
</scrip t>
10、豆瓣网
<!--JiaTh is Butto nBEGIN-->
<div id="ckepo p">
<span class="jiath is_tx t">分享到 </span>
<a class="jiath is_bu tton_douba n">豆瓣</a>
<a href="http://www.jiath is.com/share"class="jiath is jiath is_tx tjiath is_se parat orjtico jtico_jiathis" targe t="_blan k">更多</a>
<a class="jiath is_co unter_styl e"></a>
</div>
<scrip ttype="text/javas cript "src="http://v2.jiath is.com/code/jia.js"chars et="utf-8"></scrip t><!--JiaTh is Butto nEND-->
11、搜狐分享
一、搜狐微博分享代码
<a href="javascript:void((function(s,d,e,r,l,p,t,z,c){varf='http://t.sohu.com/third/post.jsp?',u=z| |d. location,p=['&url=' ,e(u),'&title=',e(t| |d.title),'&content=',c| | 'gb2312','&pic=',e(p| | ' ')].join(' ');function%20a(){if(!window.open([f,p].join(' '),'mb',['toolbar=0,status=0,resizable=1,width=660,height=470,left=',(s.width-660)/2,',top=',(s.height-470)/2].join(' ')))u.href=[f,p] .join(' ');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent,' ',' ',' ' ,' ',' ','utf-8'));"><img src='更换成自己的图片地址/images/tsohu.png' title='分享到搜狐微博'border='0'></a>
二、可配置的参数在下例代码块中标红显示以下代码仅供说明不能直接复制
粘贴使用
<a t it le="分享到搜狐微博" h ref="javascript:void((fu nction(s,d,e,r,l,p,t,z,c){varf='http:⁄⁄t.so hu.co m⁄th ird⁄post.j sp?',u=z| |d. locat io n,p=['&a p p key=','a p p key值
','&url=',e(u),'&title=',e(t| |d.title),'&content=',c| | 'gb2312','&pic=',e(p| |)].join();function%20a(){if(!window.open([f,p].jo in(),'mb',['toolb ar=0,status=0,resizab le
=1,w id t h=660,h eig h t=470,left=',(s.w id t h-660)⁄2,',top=',(s.h e ig h t-470)⁄2].j o in(
)))u.h ref=[f,p].jo in();};if(⁄Firefox⁄.test(nav igator.userAgent))setTimeout(a,0);e lse%20a();})(screen,document,encodeURIComponent,,,,CONTENT,URL,utf-8));"sty le="m a rg i n:000
20px;font-size:12px;font-fami ly: '\5b8b\4f53';color:#369"><spanstyle="disp lay: in l in e-block;width:16px;height:16px;margin:03px 0.2em
-20px;vertical-a l ign:midd le;background:url(http:⁄⁄s2.cr. itc.cn⁄img⁄t⁄152.png)no-repeat"><⁄span>分享到搜狐微博<⁄a>
参数说明
以上参数可以根据需求替换为符合你网站要求的内容说明如下
CONTENT
要分享的文字内容可以为空字符串空字符串时将使用分享按钮所在页面的t it le属性URL
要分享的网页l地址必须以http开头可以为空字符串空字符串时将使用分享按钮
所在页面的地址appkey
用于显示来源
QQ分享
<scrip ttype="text/javas cript ">
(funct ion(){var p={url:locat ion.href, /*获取URL可加上来自分享到QQ标识方便统计*/des c:' ', /*分享理由(风格应模拟用户对话),支持多分享语随机展现 使用|分隔 */tit le :'', /*分享标题(可选)*/summa ry:'', /*分享摘要(可选)*/pics:' ', /*分享图片(可选)*/flash: '', /*视频地址(可选)*/site:' ', /*分享来源(可选)如 QQ分享*/s tyle :'202',w idth:24,heigh t:24
};var s=[];for(var i in p){s.push(i+'='+encod eURIC ompon ent(p[i]| | ' '));
}docum ent.write(['<a class="qc Sha reQQD iv"href="http://conne ct.qq.com/widge t/shareqq/index.html?',s.join('&'),'" targe t="_blan k">分享到QQ</a>'].join(' '));
})();
</scrip t>
<scrip tsrc="http://conne ct.qq.com/widge t/loade r/loade r.js"widge t="share qq"charset="utf-8"></scrip t>
12、分享到百度空间
docum ent.write ln("");//5-分享到百度空间docum ent.write ln("<Atitle=分享到我的百度空间targe t=_self href=\"javas cript :u=location.href;t=docum ent.title ;c=%22%22+(windo w.getSe lecti on?windo w.getSe lecti on() :document.getSe lecti on?docum ent.getSe lecti on() :docum ent.selec tion.creat eRang e().text);varurl=%22htt p:\/\/apps.hi.baidu.com\/share\/?url=%22+encod eURIC omponent(t)+%22&iu=%22+encod eURIC ompon ent(u)+%22&dc=%22+encod eURIC omponent(c)+%22&fr=ien#nw=1%22;windo w.open(url,%22_bl ank%22,%22scr ollba rs=no,width=600,heigh t=450,left=75,top=20,statu s=no,resiz able=yes%22);void 0\"><IMG src=\"\/images\/wz\/5.gif\"borde r=0</a>");
13、搜狐白色会
<a href="javascript:var u=location.href;vart=document. ti tle; t=t. substr(0, 80)+'by:Addthis. org.cn' ;varc=' '+(window. getSelect ion?window.getSelection() :document. getSelect ion?document.getSelect ion() : document. select ion.createRange() . text) ; c=c. substr(0,280) ;vare=encodeURIComponent;varurl='http: //bai. sohu.com/share/blank/add.do?link='+e(u)+' ' ;window. open(url, 'addthis. org. cn' , ' toolbar=0, res izable=1, scrol lbars=yes, status=1,width=600,height=450' ) ;void(0) ">分享到搜狐白社会</a>
13、有道云笔记butto n, "有道云笔记"=Go to page, "javas cript :(funct ion(){CLIP_HOST='http://note.youdao.com/yws';try{var%20x=docum ent.creat eElem ent('SCRIP T');x.type='text/javas cript' ;x.src=CLIP_ HOST+'/YNote Clipp er.js?'+(new%20Dat e().getTi me()/10000 0);x.charset='utf-8' ;docum ent.getEl ement sByTa gName('head')[0].appen dChil d(x);}c atch(e){alert (e);}})();",1
14、人民微博
<scrip ttype="text/javas cript "chars et="utf-8">
(funct ion(){var img_w=16,img_h=16;var param={showt ype:'0',bigty pe:'0',url:locat ion.href,appke y:'', /**您申请的应用appk ey,显示分享来源(可选)*/title :docum ent.title ,/**分享的文字内容(可选默认为所在页面的ti tle)*/pic:' ', /**分享图片的路径(可选),多张图片用|分隔*/site:' ' /**你的站点名(可选)*/
}var temp=[];for(var p in param){temp.push(p+'='+encod eURIC ompon ent(param[p] | | ' ' ) )
}
docum ent.write ('<ifram e allow Trans paren cy="true" frame borde r="0" scrol ling="no"src="http://t.peopl e.com.cn:80/share .actio n?' + temp.join('&') + '"width="'+ img_w+'" height="'+img_h+'"></ifram e>')
})()
</scrip t>
15、天涯
<scrip ttype="text/javas cript ">
(funct ion() {var p={share To:1,/*1:论坛 2:微博*/appke y:"",/*用于显示来源(可选)*/title :docum ent.title ,/*转发内容标题*/url:locat ion.href,/**转发内容地址默认为当前地址*/picUr l:[],/*分享图片地址数,组形式表示(可选)*/flash Video Url:"",/*分享视频地址可以直接填写视频页面地址或.swf地址推荐前者 分享视频时会自动添加到视频应用中*/tagNa me:[],/*视频的标签名称*/relat eTYUs erNam e:""/*分享后显示提示关注的用户名称*/
},s=[];for(var n in p){if(typeo f p[n]=="objec t"){for(var i in p[n]){p[n][i] = encod eURIC omponent(p[n][i]| |"");}s.push(n+"="+p[n].join(","));}else{s.push(n+"="+encod eURIC omponent(p[n]| |""));}}docum ent.write ('<a href="http://open.tiany a.cn/widge t/send_ for.php?actio n=send-html&'+s.join("&") +'" targe t="_blan k" onfoc us="this.blur();" title ="转发到天涯 "><imgsrc="http://open.tiany a.cn/stati c/image s/send/btn_b bs_l.png" alt="转发到天涯" style="borde r:0none;"/></a>');
})();
</scrip t>
老薛主机怎么样?老薛主机这个商家有存在有一些年头。如果没有记错的话,早年老薛主机是做虚拟主机业务的,还算不错在异常激烈的市场中生存到现在,应该算是在众多商家中早期积累到一定的用户群的,主打小众个人网站业务所以能持续到现在。这不,站长看到商家有在进行夏季促销,比如我们很多网友可能有需要的香港vps主机季度及以上可以半价优惠,如果有在选择不同主机商的香港机房的可以看看老薛主机商家的香港vps。点击进入...
全新PHP短网址系统URL缩短器平台,它使您可以轻松地缩短链接,根据受众群体的位置或平台来定位受众,并为缩短的链接提供分析见解。系统使用了Laravel框架编写,前后台双语言使用,可以设置多域名,还可以开设套餐等诸多功能,值得使用。链接: https://pan.baidu.com/s/1ti6XqJ22tp1ULTJw7kYHog?pwd=sarg 提取码: sarg文件解压密码 www.wn7...
妮妮云的知名度应该也不用多介绍了,妮妮云旗下的云产品提供商,相比起他家其他的产品,云产品还是非常良心的,经常出了一些优惠活动,前段时间的八折活动推出了很多优质产品,近期商家秒杀活动又上线了,秒杀产品比较全面,除了ECS和轻量云,还有一些免费空间、增值代购、云数据库等,如果你是刚入行安稳做站的朋友,可以先入手一个119/元季付的ECS来起步,非常稳定。官网地址:www.niniyun.com活动专区...