|
主题:[分享]介绍几种“分享到”代码的实现方式 [收藏主题] |
我们经常在各大网站发现“分享到”代码,非常方便实用,快速增加外链,增加流量,这里我们简单介绍几种实现方法。
方法一:自己做分享到代码,模板如下 <a href=[size=+0]javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','');void(0)><img src="更换成自己的图片地址/images/qq.gif" alt="QQ书签" border="0" height="16" width="16"></a> <a href="[size=+0]javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,%22_blank%22,%22scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes%22); void 0"><img src="更换成自己的图片地址/images/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"></a> <a href="[size=+0]javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="更换成自己的图片地址/images/google.gif" alt="Google书签" border="0" height="16" width="16"></a> <a href="#"><img src="更换成自己的图片地址/images/yahoo.gif" alt="雅虎收藏" border="0" height="16" width="16"></a> <a href="[size=+0]javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="更换成自己的图片地址/images/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"></a> <a href="[size=+0]javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();"><img src="更换成自己的图片地址/images/kaixin001.gif" alt="转贴到开心网" border="0" height="16" width="16"></a> <A title=分享到服务易 href="[size=+0]javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.fuwuyi.cn/home.php?mod=spacecp&ac=share&fchannel=xmenus&u='+escape(d.location.href)+'&t='+escape(d.title),'fuwuyi'));fuwuyi.focus();"><IMG alt=转帖到服务易 src="http://www.fuwuyi.cn/favicon.ico" align=absMiddle border=0><FONT color=#996699>服务易</FONT></A> 方法二:利用网络上其他网站提供的现成代码,获取后将其嵌入到指定位置即可。 这里我们推荐一个非常不错的代码分享网站:http://www.fuwuyi.net |
|
支持(0) | 反对(0) 顶端 底部 |
<上一主题 | 下一主题 > |