<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
*{ margin:0; top:0}
.pop{ height:200px; width:200px; background:red; position:absolute;}
h4{ line-height:40px; height:40px; background:#4A1D1D; color:#fff; cursor:move}
</style>
<script>
window.οnlοad=function(){
var oDiv1=document.getElementById('box1');
var oDiv2=document.getElementById('box2');
var title=oDiv1.getElementsByTagName('h4')[0];
drag(oDiv1,ti
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
*{ margin:0; top:0}
.pop{ height:200px; width:200px; background:red; position:absolute;}
h4{ line-height:40px; height:40px; background:#4A1D1D; color:#fff; cursor:move}
</style>
<script>
window.οnlοad=function(){
var oDiv1=document.getElementById('box1');
var oDiv2=document.getElementById('box2');
var title=oDiv1.getElementsByTagName('h4')[0];
drag(oDiv1,ti