开发者

how to call [object htmlDivElement]

i want to call the functions move开发者_StackOverflow中文版in(this) & moveout(this) directly with out using onmouseover or onmouseout by the way (this) is [object htmlDivElement]

  var tb = '<div id="' + o.id + '" onmouseover="movein(this);" onmouseout="moveout(this);"><div><table>\n';


Tried movein(document.getElementById(o.id)) & moveout(document.getElementById(o.id)) ?


Using event delegation may be an option for you, see my answer to this question. Using event delegation, you define a mouseover/-out handler on the table and let the handler decide if and what action has to be taken.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜