这里使用了mousewheel的jquery插件。网址是:http://www.jq22.com/jquery-info805
功能描述:获取鼠标滚动次数。
所需要的引用的文件是:
1.jquery.min.js
2.jquery-mousewheel.js
结果图片:
html代码:
<!DOCTYPE html>
<html lang="zh-CN">
<meta http-equiv="Content-type" content="text/html" charset="utf-8" >
<head>
<title>获取滚轮次数</title>
<style>
.box { width: 600px; height: 300px; background-color: #eed; }
</style>
</head>
<body>
<di