如何升级google +按钮
How upgrade google + button?
我是初学者,请帮助我。
我有这样的代码:
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<g:plusone size="tall"></g:plusone>
我应该把他升级为异步代码段:http://googlewebmastercentral.blogspot.com/2011/07/1-button-now-faster.html
我的问题是我不知道在谷歌配置工具中选择与
大小相同的图像大小<g:plusone size="tall"></g:plusone>
,我已经在网站上了
Thanks in advance
我不确定你是否理解正确。您没有更改按钮,而是更改脚本的行为方式。只要保留您的<g:plusone size="tall"></g:plusone>
并相应地更改脚本
选择"Tall"
<!-- Place this tag where you want the +1 button to render -->
<g:plusone size="tall"></g:plusone>
<!-- Place this tag after the last plusone tag -->
<script type="text/javascript">
(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>
有关高级信息,请参阅+1标签参数部分:http://code.google.com/apis/+1button/
相关文章:
- 社交媒体JavaScript(按钮)无法相处Google+,Facebook,YouTube等
- 将文本设置为google+共享按钮
- 如何使用带有搜索按钮的Google Places API
- Google+1按钮在多个子页面中共享,但它应该't
- Google Picker API -- 按钮点击事件
- 为 Google 地图信息框创建自定义关闭按钮
- Google+按钮损坏了工具提示
- Google+ 环聊按钮窗口位置
- 如何将圆形徽标用于 Google 课堂共享按钮
- 在 Google Apps 脚本中循环访问单选按钮值时遇到问题
- 在 Google Apps 脚本中创建枚举按钮集
- 将Google+登录按钮添加到网站
- 如何让Jquery Mobile - Google地图仅在单击按钮时显示
- 正确对齐Google Plus One和Facebook Like按钮
- Google+JS API自动触发交互式帖子按钮
- Google+交互式帖子-如何为按钮添加回调
- 如何使用谷歌分析以外的跟踪器在一个地方跟踪所有Google++按钮点击
- 重新分析Google Plus按钮
- Google+登录按钮并不总是加载
- 如何在扩展spreadheet的Google脚本上的按钮事件处理程序中传递数据