87,995
社区成员




<!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>
<title> new document </title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="generator" content="editplus" />
<meta name="author" content="yixianggao@126.com" />
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<body>
<div id=oDiv style="overflow:auto; height:100px; width:250px; text-align:left; border: 1px solid red;">
a<br />
b<br />
c<br />
d<br />
e<br />
f<br />
g<br />
h<br />
i<br />
j<br />
k<br />
l<br />
</div>
<script type="text/javascript">
<!--
document.getElementById("oDiv").onscroll = function() {
//alert();
if ((this.scrollTop + parseInt(this.style.height, 10))==this.scrollHeight)
{
alert("到底啦!");
}
};
//-->
</script>
</body>
</html>