婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 網站建設 > 建站知識 > 織夢模板實現分享到各大網站的功能

織夢模板實現分享到各大網站的功能

POST TIME:2017-11-13 23:41

織夢模板實現分享到各大網站的功能

我們可以想在dede系統的文章下面加個分享到功能:

比如,把網站內容分享到某些大網站.象百度啊 ,QQ啊.

非常好的功能,可以在不知不覺中增加你的外鏈,提高你網站的流量。

實際上功能實現起來并不復雜。

下面都是一些可以直接使用的js代碼。

只要將這些代碼添加到dede模板的相應位置即可。

分享到QQ書簽

<a href=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="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>

分享到google書簽。

<a href="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="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/butt*****hare.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="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="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>

 



收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
主站蜘蛛池模板: 甘孜| 红原县| 峡江县| 乌拉特后旗| 天长市| 阳城县| 名山县| 安阳县| 郁南县| 开平市| 华宁县| 肥城市| 山东省| 和平县| 威海市| 石台县| 莆田市| 维西| 绥德县| 福鼎市| 恭城| 宜昌市| 长葛市| 仁化县| 公安县| 武鸣县| 叙永县| 屏东市| 灵寿县| 阳谷县| 徐汇区| 西宁市| 凭祥市| 淮阳县| 汾阳市| 黑水县| 黄龙县| 南汇区| 肇源县| 澜沧| 莱西市|