美文网首页JS项目练习
【JS练习】记住密码提示框

【JS练习】记住密码提示框

作者: 奔跑的程序媛A | 来源:发表于2019-04-03 03:18 被阅读0次

参考:http://www.fgm.cc/learn/lesson1/06.html

        <script type="text/javascript">

        window.onload = function() {
            var oLab = document.getElementsByTagName("label")[0];
            var oTip = document.getElementById("remainder");
            oLab.onmouseover = function() {
                oTip.style.display = "block"
            };
            oLab.onmouseout = function() {
                oTip.style.display = "none"
            }
        }
        </script>

相关文章

网友评论

    本文标题:【JS练习】记住密码提示框

    本文链接:https://www.haomeiwen.com/subject/ippobqtx.html