facebook 分享 js
2017-04-18 13:17
176 查看
<html> <head> <meta property="og:image" content="http://www.huitu.com/design/show/20130116/142820494200.html?_t_t_t=0.7526275933756319" /> <meta property="og:description" content="test>" /> <meta property="og:url" content="https://www.baidu.com" /> </head> <body> <h2>Hello World!</h2> <a style="display:inline-block;width:35px; height:40px; position:relative; top:10px; left:48px; " title="Share on Facebook" target="_blank" onclick="javascript:window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent('https://www.baidu.com')+'&t='+encodeURIComponent(document.title), 'newWindow', 'width=800, height=400','center');void(0);">分享到facebook</a> <br> <br> <a href="javascript:window.open('http://twitter.com/home?status='+encodeURIComponent('https://image.baidu.com')+' '+encodeURIComponent('aaaaaa'),'_blank','toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=600, height=450,top=100,left=350');void(0)" >twitter分享</a> <br> <br> <a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-shape="round" data-pin-height="28">pinterest分享</a> <script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"> </ b045 script> <div style="float:right;"> <!-- Place this tag where you want the +1 button to render --> <g:plusone></g:plusone> <!-- Place this tag after the last plusone tag --> <script type="text/javascript"> window.___gcfg = {lang: 'zh-CN'}; (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> </div> </body>
相关文章推荐
- js分享到facebook,twitter,linkedin和google
- js分享到facebook,twitter,linkedin和google
- js网站上添加tweet facebook google+等英文分享按钮代码
- html、js实现facebook、twitter分享
- js分享到facebook,twitter,linkedin和google
- Share.js网页一键分享到微博、QQ空间、QQ好友、微信、腾讯微博、豆瓣、Facebook、Twitter、Linkedin、Google+
- js分享到facebook,twitter,linkedin和google
- Share.js 一键分享到微博、QQ空间、QQ好友、微信、腾讯微博、豆瓣、Facebook、Twitter、Linkedin、Google+、点点
- [分享兼散分]一个好网址,大量有用JS,代码可下载
- 主题:分享10个Js的小型库,效果真的很棒..
- 分享一个js Tree - dTree
- 分享个跨browser的交换位置节点的js
- 【分享】JS事件触发延迟
- 【分享】JS添加/删除事件处理函数(支持IE,FF,opera,safari)
- 【分享】JS打乱数组最高效的方法
- 分享10个Js的小型库,效果真的很棒...
- [分享] 使用 SWFObject.js 插入Flash且符合W3C标准
- 好东西一起分享:ie下的js调试工具companion.js
- 分享别人写的一个小型js框架
- 分享JS广告代码 如sina 163 首页平铺瞬间消失的那种