我需要在子div上删除鼠标移出效果。鼠标悬停对子Div的影响---需要解决方案
只要使用该代码即可理解问题。
这里是我的代码:
<div onmouseover="mOver(this)" onmouseout="mOut(this)" style="background-color:#D94A38;width:120px;height:20px;padding:40px;">Mouse Over Me</div>
<script>
function mOut(obj)
{
obj.innerHTML="Thank You"
}
function mOver(obj)
{
obj.innerHTML='<table style=" border:solid 1px #ff0000;"><tr><td><label>Username</label><input type="text" name="username" id="username" maxlength="64" value="SwapnilC" autocomplete="off"><br/><label for="pass">Password</label><input type="password" name="pass" id="pass" value="Password"></div><div style=" float:right;width:90px;background-color:#933;" onClick="ClickLogin();">Login</div><div style="float:right; margin-right:10px; width:20px; padding-top:4px;"> <img id="PP_loading" title="Processing Request" style="display:none;" src="images/ajaxProcess.gif" /> </td></tr></table>'
}
</script>
</body>
</html>