1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script type="text/javascript">
6 // 鼠标移入提示
7 function warn(){
8 document.getElementById("warn").style.display="block";
9 }
10 }
11 // 鼠标移出
12 function out(){
13 document.getElementById("warn").style.display="none";
14 }
15 </script>
16 <style>
17 #warn{
18 width:100px;
19 height:100px;
20 border:solid 1px red;
21 display:none;
22 }
23 </style>
24 </head>
25 <body>
26 <label onMouseOver="warn();" onMouseOut="out();"><input type="checkbox" />自动登录</label>
27 <div id="warn">最好不要在网吧。。。。</div>
28 </body>
29 </html>