代码在Firefox和Opera中无效 [英] Code not working in Firefox and Opera

查看:78
本文介绍了代码在Firefox和Opera中无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。


我创建了这个小窗口,当我将鼠标滚动到我在html代码中指定的元素时显示。


就像一个nubbin我在IE中测试它的时候我正在编写它,认为当我完成时很难对其他浏览器进行修改。


现在它在IE中完美运行但无论我做什么我都无法使其适用于Firefox或Opera。


请,有人可以告诉我那些是什么!#"# $ %%)浏览器不理解? :P


这就是我认为导致问题的原因。
完整代码是这里

Hi.

I''ve created this little window that is shown when I roll the mouse over elements I specify in my html code.

Like a nubbin I test this in IE while I''me writing it, thinking it can hardly be that hard to modify for the other browsers when I''m done.

Now it works perfectly in IE but no matter what I do I can not make it work for Firefox or Opera.

Please, can anybody tell me what those !#"#$%%) browsers arn''t understanding? :P

This is what I think is causing the problem.
Full code is here

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号

推荐答案

%%)浏览器不理解? :P


这就是我认为导致问题的原因。
完整代码是这里

%%) browsers arn''t understanding? :P

This is what I think is causing the problem.
Full code is here

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


ToolTip.prototype.Update = function()

应该引用你以后使用的事件参数。


MouseX = e.pageX;

MouseY = e.pageY;


IE不使用它,它使用全局事件 -

但包括它传递事件pa的客户端rameter:
ToolTip.prototype.Update = function(e)
ToolTip.prototype.Update = function()
should have the reference to the event parameter you use later.

MouseX = e.pageX;
MouseY = e.pageY;

IE doesn''t use it, it uses a global event-
but include it for the clients that pass an event parameter:
ToolTip.prototype.Update = function(e)


啊,谢谢你。


所有这些麻烦都来自单个e:P
Ahh ofc thank you.

All this trouble cuz of a single e :P


这篇关于代码在Firefox和Opera中无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆