<div class="htmlarea"> <textarea id="runcode56843"> <title>滑动弹出层</title> <script type="text/javascript"> function shouhui() { document.getElementById('div1').style.display='block'; } function fangzou() { document.getElementById('div1').style.display='none'; } </script> <style type="text/css"> #div1{ background:#CCC; width:500px; height:400px; display:none; } </style> <label><input type="checkbox" onmouseover="shouhui()" onmouseout="fangzou()">点击靠近</label> <div id="div1"> 鼠标靠近后查看 </div> </textarea><br><input onclick="runEx('runcode56843')" type="button" value="运行代码"> <input onclick="doCopy('runcode56843')" type="button" value="复制代码"> <input onclick="doSave(runcode56843)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>