Addthis使用
来源:互联网 发布:淘宝心选在哪里设置 编辑:程序博客网 时间:2024/05/23 13:43
一、使用
https://www.addthis.com/。国外的SNS分享站点较多,适用于英文站点内容的分享。有教程。
我的测试代码如下:
<html><meta charset="utf-8"/><head><title>share</title></head><body><div ><b>分享到</b></div><div class="addthis_toolbox addthis_default_style addthis_32x32_style"> <a class="addthis_button_linkedin"></a> <a class="addthis_button_twitter"></a> <a class="addthis_button_facebook"></a> <a class="addthis_button_google_plusone_share"></a> <a class="addthis_button_sinaweibo"></a> <a class="addthis_button_compact"></a></div><script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script><script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-55754f584f46a708" async="async"></script><script type="text/javascript">// addthis.layers({'theme' : 'transparent',// 'share' : {'position' : 'right',// 'services' : 'linkedin,twitter,facebook,google_plusone_share,sinaweibo,more'}// });</script></body></html>
二、Addthis分享插件后url乱码的解决办法
Addthis分享插件安装后,有时候URL后面会出现类似#.UI3JrFIqHE8 的一串乱码的乱码,他的作用是用来追踪客户客户,但是给客户的印象会以为木马中毒之类的
例如: http://www.xxx.com/xxx-p-1.html#.USSfYGc68cY
解决方案
将插件代码中
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
删除,或者改为false。
三、类似产品
JiaThis - 中国最大的社会化分享按钮及分享代码提供商!
可定制分享图标样式,支持100多个SNS分享站点,嵌入方式也很简单,仅仅一段脚本+HTML。
http://www.jiathis.com/
百度分享
http://www.bshare.cn/
微博分享
http://open.weibo.com/sharebutton
0 0
- Addthis使用
- 使用AddThis实现页面分享
- 第三方书签AddThis
- [收藏]两个共享代码(AddThis和jiathis)
- ios share with facebook/twitter, addthis library
- 【关注】分享按钮之战 jiathis与addthis
- 获取收藏按钮jQuery插件(jQuery China-addthis plugin)
- 大数据 addthis hydra 九头蛇的学习 第一章
- 大数据 addthis hydra 九头蛇的学习 第二章
- 补充 大数据 addthis hydra 九头蛇的学习
- 发布2个jQuery插件:Addthis收藏按钮插件 & AddFeed订阅按钮插件
- addthis,jiathis分享,以及facebook分享的实现与注意点
- varnish 架构网站中addthis中加入动态链接 参数:aid
- 使用
- 使用
- 使用
- 使用
- 使用
- iOS开发——打造自己的“美图秀秀”
- linux 目录结构
- Windows 8.1 下 XAMPP 的 Apache 服务器无法启动的解决
- ios—CAlayer层的属性
- jquery获取radio选中的值
- Addthis使用
- 32位固定编码实现--leveldb
- android自定义控件(三) 增加内容 自定义属性 format详解
- NoClassDefFoundError
- android task栈和activity的关系
- 解析ajax核心XMLHTTPRequest对象的创建与浏览器的兼容问题
- C#:Image与byte数组的相互转换
- SC Create 创建一个Windows系统服务
- Android Service与Activity通信