Gplus按钮错误

gplus button errors

本文关键字:错误 按钮 Gplus      更新时间:2023-09-26

如果我在我的网页上放一个简单的iframe

<iframe allowtransparency="true" frameborder="0" hspace="0" id="100513874119798249855" marginheight="0" marginwidth="0" name="I2_1321861433794" scrolling="no" src="https://plusone.google.com/_/+1/fastbutton?url=http%3A%2F%2Fwww.dudeye.com%2Fsite%2Flike%2F543&amp;size=tall&amp;count=true&amp;annotation=&amp;hl=en-US&amp;jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fwidget%2F__features__%2Frt%3Dj%2Fver%3DajMrQx3-U8Y.pl.%2Fsv%3D1%2Fam%3D!W_gXXLnZrrYgVlks%2Fd%3D1%2F#id=I2_1321861433794&amp;parent=http%3A%2F%2Fwww.dudeye.com&amp;rpctoken=295361220&amp;_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe" style="width: 50px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; height: 60px; position: static; left: 0px; top: 0px; visibility: visible; " tabindex="-1" vspace="0" width="100%" title="+1"></iframe>

不使用<g:plus>标签,我有很多错误,如:

document.getElementById(a)为null

和一些错误在谷歌徽章,如不安全的JavaScript试图访问框架与URL…咩咩咩……域、协议和端口必须匹配。

我怎么能修复这个错误,是怎么回事?

您需要在父页面上包含google +1 javascript才能正常工作