發現很多網站在放置百度分享代碼的時候
其實
這裡分享下我的放置方式
一
<!
<div id="bdshare" class="bdshare_t bds_tools_
<a class="bds_tsina"></a>
<a class="bds_qzone"></a>
<a class="bds_tqq"></a>
<a class="bds_renren"></a>
<a class="bds_douban"></a>
<span class="bds_more"></span>
<a class="shareCount"></a>
</div>
<script type="text/javascript" id="bdshare_js" data="type=tools&uid=
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document
</script>
<!
二
認真分析上面的分享代碼
下面是我做的一個demo
<!DOCTYPE html PUBLIC "
<html>
<head>
<title>JS延遲加載百度分享代碼
<meta http
<style type="text/css">
body{margin:
#copyright{clear:both;}
</style>
</head>
<body>
<div id="baidu
<!
<div id="bdshare" class="bdshare_t bds_tools_
<a class="bds_tsina"></a>
<a class="bds_qzone"></a>
<a class="bds_tqq"></a>
<a class="bds_renren"></a>
<a class="bds_douban"></a>
<span class="bds_more"></span>
<a class="shareCount"></a>
</div>
<script type="text/javascript" id="bdshare_js" data="type=tools&uid=
<script type="text/javascript" id="bdshell_js"></script>
<!
</div>
<div id="copyright">
<a href="編程圖書PDF下載【codejia
</div>
<script type="text/javascript">
window
function shareCode(){
document
}
</script>
</body>
</html>
分析
百度分享代碼通過這樣調整後就算百度的服務器掛了
其實
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20015.html