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.
精彩评论