<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

</head>

<body>
<script>
var over=false,down=false,divleft,divtop,n;
function clase(x){
 document.all[x].style.visibility='hidden'
 }
function down1(m){
 n=m;
 down=true;
 divleft=event.clientX-parseInt(m.style.left);
 divtop=event.clientY-parseInt(m.style.top)
 }
function move(){
 if(down){
  n.style.left=event.clientX-divleft;n.style.top=event.clientY-divtop;
  }
 }
</script>

<script type="text/javascript" src="http://mypctest.googlecode.com/svn/trunk/jemu/js/jemu.js"></script>

 

<DIV onmouseup=down=false onmousemove=move() onmousedown=down1(this) ></div></TD></TR>
</TABLE>
</DIV>

 

</body>
</html>

相关文章: