IE6 中的站点因“意外调用方法或属性访问”而中断错误

发布于 2024-08-07 04:14:32 字数 373 浏览 4 评论 0原文

http://farmball.com/boston

“导致”错误的行:

IEPNGFix.process(element, 0);

完整代码:http://pastie.org/648568

注意:我尝试在 Google 中搜索该短语和 IEPNGFix,但没有成功。在来这里之前还尝试了 MIRC Javascript 聊天室。

我需要改变什么?

http://farmball.com/boston

The line that 'causes' the error:

IEPNGFix.process(element, 0);

Full code: http://pastie.org/648568

Note: I tried searching the phrase and IEPNGFix in Google, no luck. Also tried the MIRC Javascript chatroom before coming here.

What do I need to change?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

予囚 2024-08-14 04:14:32

您需要将钩子函数更改为:

IEPNGFix.hook = function(elm) {
    if (IEPNGFix.hook.enabled) {
        IEPNGFix.process(elm, 0);
    }
};

You need to change the hook function to:

IEPNGFix.hook = function(elm) {
    if (IEPNGFix.hook.enabled) {
        IEPNGFix.process(elm, 0);
    }
};
吐个泡泡 2024-08-14 04:14:32

我不明白你在哪里将 element 定义为任何内容。尝试将有效的元素值传递给 IEPNGFix.process 函数。

I don't see where you define element as anything. Try passing in a valid element value to the IEPNGFix.process function.

青芜 2024-08-14 04:14:32

这种方式更改挂钩函数对我有用:

IEPNGFix.hook = function(evt) {
    if (IEPNGFix.hook.enabled) {
        IEPNGFix.process(evt.srcElement, 0);
    }
};

参考在这里:
http://www.twinhelix.com/cgi-bin/forum.pl /iepngfix/531

Change the hook function this way works for me:

IEPNGFix.hook = function(evt) {
    if (IEPNGFix.hook.enabled) {
        IEPNGFix.process(evt.srcElement, 0);
    }
};

Reference is here:
http://www.twinhelix.com/cgi-bin/forum.pl/iepngfix/531

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文