这篇文章介绍了jquery滚动条事件的简单实例
有需要的朋友可以参考一下
复制代码 代码如下:
<!DOCTYPE html PUBLIC "//WC//DTD XHTML Transitional//EN" "
<html xmlns="
<head>
<meta httpequiv="ContentType" content="text/html; charset=utf" />
<title>无标题文档</title>
<script type="text/javascript" src="jqueryjs"></script>
<script type="text/javascript">
$(function(){
var lazyheight = ;
//获取数据
function showload(){
lazyheight = parseFloat($(window)height()) + parseFloat($(window)scrollTop());
if ($(document)height() <= lazyheight) {
alert("xxx");
}
}
//showload();
//绑定事件
$(window)bind("scroll" function(){
//当滚动条滚动时
showload();
});
})
</script>
</head>
<body>
<img src="_jpg"/>
<img src="_jpg"/>
<img src="_jpg"/>
</body>
</html>