如何在javascript代码中调用javascript onmouseout
事件?
即:
var div=document.getElementById('new');
if(div.mouseout)
document.getElementById('new').style.visibility='hidden';
谢谢。
最佳答案
我想你想要:
var div = document.getElementById("new");
div.onmouseout = function (e)
{
this.style.visibility = "hidden";
}
关于javascript - 在 javascript 中调用 javascript onmouseout 事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2221257/