我正在使用一个社交脚本锁来锁定我博客中的下载链接。该脚本在Chrome中运行良好,但在Firefox或ie中运行不佳。我在我的博客中有很多脚本,我注意到如果我改变这些脚本的顺序,其中一些在firefox和ie中会停止工作,但在Chrome中不会。我还注意到,我最初找到脚本的演示页面在任一浏览器上都工作得很好。
代码如下:
<link href='https://sites.google.com/site/menightfury/home/social-locker/public/sociallocker_v1.6.0.css' rel='stylesheet'/>
<script src='https://sites.google.com/site/menightfury/home/social-locker/public/sociallockermin_v1.6.0.js' type='text/javascript'/>
<script type='text/javascript'>
//<![CDATA[
jQuery(document).ready(function ($) {
$('#default-usage .to-lock').sociallocker({
buttons: {order:["facebook-like","twitter-tweet","google-plus"]},
twitter: {url:"http://twitter.com/menightfury"},
facebook: {url:"https://www.facebook.com/bloganalyzer.nightfury"},
google: {url:"https://plus.google.com/+BloganalyzerBlogspot"},
text: {
header: "Like us To Unlock This Content",
message: "This content is locked. Like us on Twitter, Facebook or Google plus to unlock it."
},
locker: {close: false, timer: 0,},
theme: "secrets"
});
});
//]]>
</script>在帖子里:
<div id="default-usage">
<div class="to-lock" style="display:none;">
-- Hidden Content Starts --
</div>
</div>这是演示页面:http://bloganalyzer-demo.blogspot.in/2014/04/social-locker.html
我真的不明白问题出在哪里。有谁知道吗?
谢谢
发布于 2014-12-02 14:31:20
使用开发人员工具或FX Inspect元素的控制台选项卡可列出跟踪保护阻止的内容/脚本。
SEC7114:跟踪保护阻止了此页面中的下载。http://connect.facebook.net/en_US/all.js
SEC7114:跟踪保护阻止了此页面中的下载。http://platform.twitter.com/widgets.js
SEC7114:跟踪保护阻止了此页面中的下载。http://www.google-analytics.com/ga.js
此外,MSIE还显示了几个安全错误。
您可以通过使用无协议的src来避免这些问题
……我认为谷歌已经为使用BlogSpot的博主提供了分析.
blogger.com的博客分析器的概念是谷歌访问者指标的复制。
https://stackoverflow.com/questions/27236657
复制相似问题