DOM问题 [英] DOM Problems

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

问题描述

这篇帖子适合那些努力弄清楚为什么会掉线

菜单和其他脚本无法使用DOM的工作。


有轻微的ONMOUSEOVER和ONMOUSEOUT事件的DOM问题

的父元素和子元素。当子元素触发其

ONMOUSEOVER事件时,它也会触发ONMMOUSEOUT事件。当这个

发生时,你会得到一个取消脚本(比如使用计时器来代替
实例)。因此,你必须检查以确保你仍然在父元素中以保持其ONMOUSEOUT事件不被触发。


有关此内容的更多信息主题视图: http://www.faqts.com/knowledge_base /view.phtml/aid/1606


要查看使用此脚本的网站,请转到此处:
http://www.nwtechonline.com/~kendalk...ls/index2.html

要查看几乎相同脚本的非工作站点,请访问:
http://www.nwtechonline.com/~kendalk...ls/index2.html


Kendal Knabe

解决方案

12月10日上午11:08,kendalk08< kendal ... @ gmail.comwrote:


[snip]


>

要查看使用此脚本的网站,请转到此处: http://www.nwtechonline.com/~kendalk...ls/index2.html



值得注意的是,您的主导航界面无法使用

没有鼠标。当脚本禁用
时,它也会完全中断。您可能也使用过CSS菜单。


David Mark在12/10/2007 11:16 AM说了以下内容:


12月10日上午11:08,kendalk08< kendal ... @ gmail.comwrote:


[snip]


>要查看使用此脚本的网站,请转到此处: http://www.nwtechonline.com/~kendalk...ls/index2.html



值得注意的是,您的主导航界面无法使用

没有鼠标。



如果没有指点设备,它将无法使用。鼠标不是唯一可用的
指针设备。


当脚本禁用时,它也会完全中断。



禁用脚本的人(在他们弄清楚之后)会让我想起

Netscape 4用户。


您可能也使用过CSS菜单。



是的,我们知道你不能禁用CSS,对吧?


-

Randy

机会有利于准备好的心灵

comp.lang.javascript常见问题 - http://jibbering.com/faq/index.html

Javascript最佳实践 - http://www.JavascriptToolbox.com/bestpractices/


12月10日上午10点51分,Randy Webb< HikksNotAtH ... @ aol.comwrote:


David Mark在12/10/2007 11上发表以下内容:上午16点:


12月10日上午11点08分,kendalk08< kendal ... @ gmail.comwrote:

< blockquote class =post_quotes>
[snip]


查看网站是usi这个脚本到这里: http://www.nwtechonline.com /~kendalk...ls/index2.html


值得注意的是,您的主导航界面无法使用

没有鼠标。



如果没有指点设备,它将无法使用。鼠标不是唯一可用的
指针设备。


当脚本禁用时,它也会完全中断。



禁用脚本的人(在他们搞清楚之后)会让我想起

Netscape 4用户。


您可能也使用过CSS菜单。



是的,我们知道你不能禁用CSS,对吧?


-

Randy

机会有利于准备好的心灵

comp.lang.javascript常见问题-http://jibbering.com/faq/index.html

Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/



我知道这种效果的局限性。我的菜单不在

问题中。这只是一个帖子来帮助那些在同一个问题上苦苦挣扎的人我是DOM,因为我看过几个地方就是问题。

这个问题。

This post is for those struggling to figure out why there Drop Down
Menus and other scripts are not working using th DOM.

There are slight DOM problems with ONMOUSEOVER and ONMOUSEOUT events
of parent and child elements. When the child element fires its
ONMOUSEOVER event it also fires the ONMMOUSEOUT event. When this
happens you get a canceling of script (Like using timers for
instance). Because of this you have to check to make sure you are
still in the parent element to keep its ONMOUSEOUT event from firing.

For more information on this topic view: http://www.faqts.com/knowledge_base/view.phtml/aid/1606.

To view a site that is using this script go here:
http://www.nwtechonline.com/~kendalk...ls/index2.html.
To view the non-working site with almost the same script go here:
http://www.nwtechonline.com/~kendalk...ls/index2.html.

Kendal Knabe

解决方案

On Dec 10, 11:08 am, kendalk08 <kendal...@gmail.comwrote:

[snip]

>
To view a site that is using this script go here:http://www.nwtechonline.com/~kendalk...ls/index2.html.

It is worth noting that your primary navigation interface is unusable
without a mouse. It also breaks completely when scripting is
disabled. You might as well have used CSS menus.


David Mark said the following on 12/10/2007 11:16 AM:

On Dec 10, 11:08 am, kendalk08 <kendal...@gmail.comwrote:

[snip]

>To view a site that is using this script go here:http://www.nwtechonline.com/~kendalk...ls/index2.html.


It is worth noting that your primary navigation interface is unusable
without a mouse.

It is unusable without a pointing device. A mouse isn''t the only
pointing device available.

It also breaks completely when scripting is disabled.

People who disable scripting (after they figure out how) remind me of
Netscape 4 users.

You might as well have used CSS menus.

Yeah, we know you can''t disable CSS, right?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/


On Dec 10, 10:51 am, Randy Webb <HikksNotAtH...@aol.comwrote:

David Mark said the following on 12/10/2007 11:16 AM:

On Dec 10, 11:08 am, kendalk08 <kendal...@gmail.comwrote:

[snip]

To view a site that is using this script go here:http://www.nwtechonline.com/~kendalk...ls/index2.html.

It is worth noting that your primary navigation interface is unusable
without a mouse.


It is unusable without a pointing device. A mouse isn''t the only
pointing device available.

It also breaks completely when scripting is disabled.


People who disable scripting (after they figure out how) remind me of
Netscape 4 users.

You might as well have used CSS menus.


Yeah, we know you can''t disable CSS, right?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/

I know of the limitations of this effect. My menu is not in the
question. This was just a post to help those struggling with the same
issue I was The DOM, because I have seen several places that that was
the issue.


这篇关于DOM问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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