简体   繁体   English

Javascript在Google Chrome浏览器中不起作用

[英]Javascript not working in Google Chrome Browser

I've put up a code for commenting box on my html file for the visitors to comment on something in my website, and the code is provided from a website that offers it for free. 我在html文件上放置了一个注释框代码,以供访问者对我的网站中的内容进行注释,该代码是从免费提供此代码的网站上提供的。 The problem is, the commenting box is visible and functions perfectly on Internet Explorer, but in Google Chrome Browser, or FireFox Browser, the commenting box doesn't even appear on the screen. 问题是,注释框是可见的,并且在Internet Explorer上可以正常使用,但是在Google Chrome浏览器或FireFox浏览器中,注释框甚至没有出现在屏幕上。 When i view source by right-clicking, the code is still there, but does not show on the screen, and I think something is wrong with the code. 当我通过右键单击来查看源代码时,代码仍然存在,但没有显示在屏幕上,我认为代码有问题。 I have tried to fix this myself, and I could not figure this out alone. 我已尝试自己解决此问题,我无法独自解决。

Here is the code that was provided from the free commenting box website. 这是从免费评论框网站提供的代码。

<div class="js-kit-comments" backwards="yes" paginate="10"></div>
<script src="http://js-kit.com/comments.js"></script>

I wish i could provide more code, but honestly, this is basically it. 我希望我可以提供更多代码,但是说实话,基本上就是这样。

I really hope you guys can help me out on this one. 我真的希望你们能帮我解决这个问题。 Thank you in advance. 先感谢您。

The big js code isn't made to be compatible. 大的js代码不兼容。

First line : 第一行 :

try { if(!window.JSK$EPB && navigator.appVersion.match(/[345]\.[.0-9 ]+Safari/)) {

This is not the task of SO to adapt and/or debug a big proprietary script in the blind. 这不是SO盲目适应和/或调试大型专有脚本的任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM