百度分享代码小例

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8"/>
	</head>
	<body>
			<!-- Baidu Button BEGIN -->
						<div id="bdshare" class="bdshare_b left" style="line-height:12px;">
						    <img src="http://bdimg.share.baidu.com/static/images/type-button-1.jpg?cdnversion=20120831" />
						    <a class="shareCount"></a>
						</div>
						<script type="text/javascript" id="bdshare_js" data="type=button&uid=6822010" ></script>
						<script type="text/javascript" id="bdshell_js"></script>
						<script type="text/javascript">
						    document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
						</script>
		       <!-- Baidu Button END -->
	</body>
</html>

 

posted @ 2015-01-19 16:14  奋力向前CO  阅读(200)  评论(0编辑  收藏  举报