onmouseover不在IE7中工作 [英] onmouseover not working in IE7

查看:86
本文介绍了onmouseover不在IE7中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是一个构建新表的冗长javascript过程的代码片段。它放置了onmouseover。函数调用其中一个TD元素。此代码适用于IE6,Firefox和Safari。但是在IE7中,当我只是将鼠标移到TD上时,似乎没有调用onmouseover函数。但是,如果我实际上在TD上方单击鼠标,则会调用该函数。因此,在我看来,onmouseover事件的设置必须正常工作(否则函数根本不会被调用),但出于某种原因只是鼠标悬停。 TD没有触发事件。


这是一个模糊的IE设置吗?或者是其他东西?帮忙,有人吗?谢谢。


...

展开 | 选择 | Wrap | 行号

解决方案

Heya,Don。欢迎来到TSDN!


发布源代码时请使用CODE标签:


[CODE = javascript]

JavaScript代码就在这里。

[/ CODE]



下面是一段冗长的javascript代码片段构建新表的过程。它放置了onmouseover。函数调用其中一个TD元素。此代码适用于IE6,Firefox和Safari。但是在IE7中,当我只是将鼠标移到TD上时,似乎没有调用onmouseover函数。但是,如果我实际上在TD上方单击鼠标,则会调用该函数。因此,在我看来,onmouseover事件的设置必须正常工作(否则函数根本不会被调用),但出于某种原因只是鼠标悬停。 TD没有触发事件。


这是一个模糊的IE设置吗?或者是其他东西?帮忙,有人吗?谢谢。


...

展开 | 选择 | Wrap | 行号


查看这篇文章


mouseOverTeam做什么?

Below is a snippet of code from a lengthy javascript procedure that builds a new table. It puts an "onmouseover" function call on one of the TD elements. This code works in IE6, Firefox, and Safari. But in IE7, the onmouseover function does not seem to get called when I just move the mouse over the TD. If, however, I actually click the mouse while over the TD, the function does get invoked. Because of this, it seems to me that the setup of the onmouseover event must be working (or else the function wouldn''t get called at all), but for some reason just "mousing over" the TD doesn''t trigger the event.

Is this some obscure IE setting? Or something else? Help, anyone? Thanks.

...

Expand|Select|Wrap|Line Numbers

解决方案

Heya, Don. Welcome to TSDN!

Please use CODE tags when posting source code:

[CODE=javascript]
JavaScript code goes here.
[/CODE]


Below is a snippet of code from a lengthy javascript procedure that builds a new table. It puts an "onmouseover" function call on one of the TD elements. This code works in IE6, Firefox, and Safari. But in IE7, the onmouseover function does not seem to get called when I just move the mouse over the TD. If, however, I actually click the mouse while over the TD, the function does get invoked. Because of this, it seems to me that the setup of the onmouseover event must be working (or else the function wouldn''t get called at all), but for some reason just "mousing over" the TD doesn''t trigger the event.

Is this some obscure IE setting? Or something else? Help, anyone? Thanks.

...

Expand|Select|Wrap|Line Numbers


Have a look at this article.

What does mouseOverTeam do?


这篇关于onmouseover不在IE7中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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