但边缘是个什么概念啊  你放个元素加个mouseover试试 
<!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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
div{
height:1000px;
width:100px;
background-color:#F00;
}
</style>
<script type="text/javascript">
window.onload=function(){
document.body.onclick=function(e){
var a=e||window.event;
var y=a.offsetTop||(a.clientY+((document.documentElement&&document.documentElement.scrollTop)||document.body.scrollTop));
alert(y);
}
}
</script>
</head><body>
<div></div>
</body>
</html>
这样获取鼠标的位置