HOME/E-MAIL/REQUEST/SERVICE HOTLINE:0755-29442468
+ 2014-08-28. / WEB DESIGN KNOWLEDGE / facebook分享代码和tweet 分享代码

在做外贸网站时经常需要用到分享代码,facebook,和tweet 是必不可少的,那facebook分享代码和tweet 分享代码怎样的呢?

今天深圳网络公司给大家分享一下相关代码

1、拷贝下面的代码,插入到需要显示的位置
<span class=’st_googleplus’ displayText=’Google +’></span>
<span class=’st_facebook’ displayText=’Facebook’></span>
<span class=’st_twitter’ displayText=’Tweet’></span>
<span class=’st_linkedin’ displayText=’LinkedIn’></span>
<span class=’st_pinterest’ displayText=’Pinterest’></span>
<span class=’st_email’ displayText=’Email’></span>
<span class=’st_sina’ displayText=’Sina’></span>
 
2、拷贝下面的代码到 Head之前
<script type=”text/javascript”>var switchTo5x=true;</script>
<script type=”text/javascript” src=”http://w.sharethis.com/button/buttons.js”></script>
<script type=”text/javascript”>stLight.options({publisher: “d8804f04-9a1c-4e86-9086-9c2c73ea79b8″, doNotHash: true, doNotCopy: true, hashAddressBar: false});</script>

如果要去掉弹出的对话框去掉这段JS就可以 <script type=”text/javascript”>var switchTo5x=true;</script>