问题是

运行代码 [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

这是 DOM 参考

http://www.mozilla.org/docs/dom/domref/dom_event_ref33.html#1000062

下面是我在 MozillaZine Forums 提问的答复

以下为引用内容:

You’ll probably need to attach the events to the object using script rather than putting attributes in the tag. The attributes are not valid (X)HTML

Have a look at addEventListner, to see how to add events. Be warned that you are stepping into a minefield of browser incompatiblity.

See the spec for the input elment in HTML 4


以下为引用内容:

It may depend on what you’re trying to drag. If I get time I may tinker wtih this today. “addEventListener” may be the method you want to use, but it will have to be coupled with IE’s version of that method.

document.forms[0].elements[0].ondragover = function() { this.value = ”; } // may work, too.


guoshuang2005-03-01+几天有时间看到这个,试验了一下,不是这些问题,继续期待答案

运行代码 [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

[Edit on 2005-3-1 17:25:50 By guoshuang]