Social media sharing codes(各大网站网址分享功能代码)
来源:互联网 发布:linux不允许用户登录 编辑:程序博客网 时间:2024/06/05 21:06
Social media is becoming a very important traffic source to one website. We can see social media share buttons or links in most websites ranging from news website to personal blogs. It is also a very important optimization area where many SEO experts recommend. There are many social medias we can share our links to such as Facebook and Twitter. Most of these website provide share button for us to easily integrate them into our websites, but these buttons usually have default styles(fixed size, fixed images). If we want to customize these buttons so that they conform to our website design gracefully, we need to know the links these website use to share links on them. We summarize some of them here.
<!-- Facebook--> <br><a href="http://www.facebook.com/share.php?u=<?php echo $current_url; ?>" target="_blank"><img src="/images/icons/share/32/facebook.png" alt="Share on Facebook" title="Share on facebook"/></a><!--Twitter share--><a href="http://twitter.com/home?status=<?php echo urlencode($title).' '.$current_url; ?>" title="Click to share this post on Twitter" target="_blank"><img src="/images/icons/share/32/twitter.png" alt="Share on Twitter" title="Share on twitter"></a><!--Google +1 Button --><a href="https://plus.google.com/share?url=<?php echo urldecode($current_url); ?>" onclick="javascript:window.open(this.href, '_blank','menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><img src="/images/icons/share/32/google_plus.png" title="Share on Google+" alt="Share on Google+"/></a> <!-- Reddit --> <a href="http://reddit.com/submit?url=<?php echo $current_url; ?>&title=<?php echo urlencode($article_title); ?>" title="Share on Reddit" target="_blank"><img src="/images/icons/share/32/reddit.png" alt="Share on Reddit"/></a><!--Digg --><a href="http://www.digg.com/submit?phase=2&url=<?php echo $current_url; ?>" target="_blank"><img src="/images/icons/share/32/digg.png" alt="Share on Digg" title="Share on Digg"/></a><!--Tumblr--><a href="http://www.tumblr.com/share?v=3&u=<?php echo $current_url; ?>&t=<?php echo urlencode($title); ?>" target="_blank"><img src="/images/icons/share/32/tumblr.png" alt="Share on Tumblr" title="Share on Tumblr" /></a> <!--Linkedln share--><a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo $current_url; ?>&title=<?php echo $title; ?>&source=<?php echo $current_url; ?>" target="_blank"><img src="/images/icons/share/32/linkedin.png" title="Share on linkedln" /></a><!--Delicious share--><a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent('<?php echo $current_url; ?>')+'&title='+encodeURIComponent('<?php echo $title; ?>'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><img src="/images/icons/share/32/delicious.png" alt="Delicious" title="Share on delicious" /></a>
If your have readers from China, you can also add below links:
<!--Sina Weibo --><a href="http://v.t.sina.com.cn/share/share.php?url=<?php echo $current_url; ?>&title=<?php echo urlencode($title); ?>" target="_blank"><img src="/images/icons/share/sina-weibo.png" title="Share on Weiboo" alt="Share on Weibo" /></a>
Above code is to share the link to the most famous Twitter like platform in China. This website provides more functions than Twitter. Learn from Twitter, better than Twitter.
<!-- QZone --><a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<?php echo $current_url; ?>&title=<?php echo urlencode($title); ?>" target="_blank"><img src="/images/icons/share/qzone.png" title="Share on QZone" alt="Share on QZone"/></a>
Above code is to share the link to the most widely used social platform in China.
!-- Renren --><a href="http://share.renren.com/share/buttonshare?link=<?php echo $current_url; ?>&title=<?php echo urlencode($title); ?>" target="_blank"><img src="/images/icons/share/renren.png" title="Share on Renren" alt="Share on Renren"/></a>
Above code is to share the link to the most notorious Facebook like platform in China. It steals almost every idea from Facebook. You may know how to use this website even you don't know Chinese.
<!--Tencent Weibo --><a href="http://v.t.qq.com/share/share.php?url=<?php echo $current_url; ?>&title=<?php echo urlencode($title); ?>" target="_blank"><img src="/images/icons/share/tencent_weibo.png" title="Share on Tencent Weibo" alt="Share on Tencent Weibo"/></a>
Above code is to share the link to another Twitter like platform in China. Don't know why people need so many Twitters in China.
For all the above links, you need to modify the url and title accordingly. Also the images should be replaced with your own customized images, if you don't want to use images, you can use text instead. But then why do you want to customize them if you don't want to use images.
- Social media sharing codes(各大网站网址分享功能代码)
- ionic2实现社会化分享Social Sharing
- Social 实现分享功能
- 前端开发自学—各大网站网址分享
- html 各大网站分享代码
- Adobe Gaming SDK中的Social分享功能
- Janrain Engage Social Login and Social Sharing
- Unity中不接任何SDK实现众多分享(Social Sharing),针对Android
- 电子商务网站推荐超链接网址给好友功能代码
- .NET各大网站-编程技术网址
- 各大网站搜索引擎提交网址
- 什么是social media?
- Social Media APIs
- Social Media Network Model
- 分享个网站素材网址
- 求高手分享帐号通一键登录淘宝、腾讯、新浪、和各大门户网站接口代码
- Social Media Directory for Designers
- 日益火爆的Social media
- 展讯的8825平台 在TP上实现距离传感器的功能
- shell 启动新的终端并运行命令
- FocusInEvent()与FocusOutEvent()
- 邮件服务器MX设置
- block2
- Social media sharing codes(各大网站网址分享功能代码)
- nginx一些常用命令
- HDU 敌兵布阵
- Red Hat 企业版5.x ORALCE10g 安装自动配置环境参数及oracle用户创建和参数修改脚本
- 通用栈的实现
- HDU 3374 String Problem KMP-最小最大表示法
- datetimepicker 年 月 日 时 分 秒
- Linux时钟介绍和修改系统时间
- WPF初学总结2