a标签的拨打电话、发邮件、QQ发消息,另外控件分享转发
一.
①发邮件:
<a href="mailto:murphyzhang@163.com" target="_blank">murphyzhang@163.com</a>
②打电话:
<a href="tel:1343687XXXX" class="call">1343687XXXX</a>
③打开QQ聊天:
<a hfer="tencent://message/?uin=12345&Site=&Menu-=yes">弹出QQ为12345的窗口</a>
二.
一键分享控件
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div class="bdsharebuttonbox">
<a href="#" class="bds_more" data-cmd="more"></a>
<a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
<a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
<a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
</div>
</body>
<script>
window._bd_share_config={
"common":{
"bdPopTitle":"您的自定义pop窗口标题",
"bdSnsKey":{},
"bdText":"此处填写自定义的分享内容",
"bdMini":"2",
"bdMiniList":false,
"bdPic":"http://localhost/public/attachment/201410/24/14/pic.jpg", /* 此处填写要分享图片地址 */
"bdStyle":"0",
"bdSize":"16"
},
"share":{}
};
with(document)0[
(getElementsByTagName('head')[0]||body).
appendChild(createElement('script')).
src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)
];
</script>
</html>