您的位置:首页 > Web前端 > JavaScript

javascript + DIV +CSS 实现可拖动消息窗体

2006-07-14 18:42 656 查看
  
<html>
<head>
</style>
</head>

<body>
<form id="form1">
<input type=button value="DIV应用" onmousemove="aa(0);">
<div id="div2" style="background:#ff00cc;width=100px;" onmousemove="aa(0);">鼠标移到上面试试看</div>
<div id="div" style="display:none" onmousedown="startgrap(this);" onmouseup="stopgrap(this);" onmousemove="grap(this);">
<div style="border-top:1px solid red;position:absolute;right=1px;"><span onclick="aa(1);" style="cursor:hand"><font color="#eee"><b>关闭</b></font></span></div>
<span>I Like you ,do you know? <br>if you don`t know,now i tell you,i tell you!<br><br>透明窗体,可拖动</span>
</div>
</form>

</body>
</html>
本程序测试通过,大家有好的方法可一起讨论!谢谢
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: