【道勤網(wǎng)】- bmrsportswear.com 軟件視頻自學(xué)教程|免費(fèi)教程|自學(xué)電腦|3D教程|平面教程|影視動(dòng)畫(huà)教程|辦公教程|機(jī)械設(shè)計(jì)教程|網(wǎng)站設(shè)計(jì)教程!【道勤網(wǎng)】
標(biāo)題:
網(wǎng)頁(yè)一鍵分享按鈕HTML代碼
[打印本頁(yè)]
作者:
大師兄
時(shí)間:
2017-10-26 22:30
標(biāo)題:
網(wǎng)頁(yè)一鍵分享按鈕HTML代碼
在網(wǎng)頁(yè)中加入以下代碼可以實(shí)現(xiàn)網(wǎng)頁(yè)的一鍵分享:
<!DOCTYPE html>
<html>
<head>
<META http-equiv="content-type" content="text/html; charset="UTF-8">
<title>Insert title here</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="分享到人人網(wǎng)"></a>
<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
</div>
<script>
window._bd_share_config={
"common":{
"bdPopTitle":"您的自定義pop窗口標(biāo)題",
"bdSnsKey":{},
"bdText":"此處填寫(xiě)自定義的分享內(nèi)容",
"bdMini":"2",
"bdMiniList":false,
"bdPic":"http://localhost/centlight/public/attachment/201410/24/14/5449ef39574f5_282x220.jpg", /* 此處填寫(xiě)要分享圖片地址 */
"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>
</body>
</html>
復(fù)制代碼
百度一鍵分享專業(yè)開(kāi)發(fā)板代碼幫助文檔:
[url]http://share.baidu.com/code/advance
[/url]
大家可以直接用這個(gè),效果是一樣的
歡迎光臨 【道勤網(wǎng)】- bmrsportswear.com 軟件視頻自學(xué)教程|免費(fèi)教程|自學(xué)電腦|3D教程|平面教程|影視動(dòng)畫(huà)教程|辦公教程|機(jī)械設(shè)計(jì)教程|網(wǎng)站設(shè)計(jì)教程!【道勤網(wǎng)】 (http://bmrsportswear.com/)
Powered by Discuz! X3.4