1var up = $('up'), down = $('down'), log;
2
3[up, down].each(function(arrow) {
4 arrow.setStyle('opacity', .1);
5});
6
7document.addEvent('mousewheel', function(event) {
8 event = new Event(event);
9
10 /**//* Mousewheel UP */
11 if (event.wheel > 0) {
12 up.setStyle('opacity', 1);
13 down.setStyle('opacity', .1);
14 log = 'up';
15 }
16 /**//* Mousewheel DOWN*/
17 else if (event.wheel < 0) {
18 up.setStyle('opacity', .1);
19 down.setStyle('opacity', 1);
20 log = 'down';
21 }
22
23 $('log').setHTML(log);
24
25 var cls = function() {
26 [up, down].each(function(arrow) {
27 arrow.setStyle('opacity', .1);
28 });
29 }.delay(100);
30});http://www.cnblogs.com/sunshine-anycall/archive/2009/02/25/1397887.html
2
3[up, down].each(function(arrow) {
4 arrow.setStyle('opacity', .1);
5});
6
7document.addEvent('mousewheel', function(event) {
8 event = new Event(event);
9
10 /**//* Mousewheel UP */
11 if (event.wheel > 0) {
12 up.setStyle('opacity', 1);
13 down.setStyle('opacity', .1);
14 log = 'up';
15 }
16 /**//* Mousewheel DOWN*/
17 else if (event.wheel < 0) {
18 up.setStyle('opacity', .1);
19 down.setStyle('opacity', 1);
20 log = 'down';
21 }
22
23 $('log').setHTML(log);
24
25 var cls = function() {
26 [up, down].each(function(arrow) {
27 arrow.setStyle('opacity', .1);
28 });
29 }.delay(100);
30});http://www.cnblogs.com/sunshine-anycall/archive/2009/02/25/1397887.html
解决方案 »
- ExtJs IE 慢 问题,高手请进!
- 新手,关于javascript中计算浏览者在一个页面中的会话时间
- 有关JavaScript的删除操作
- 初来宝地,求解xmlhttp问题?
- 那里有xmlhttp或AJAX的详细教程下载,谢谢
- extjs:form表单提交与filefield控件 求~支招
- 将多个帧图通过document.setInterval()方法实现类似gif的动态图显示 刚刚学习js
- 我想让一个表单有多个提交按钮,进行不同的动作?怎么办呀?
- 怎样获得标签数组中当前的下标?
- json对象如何解析
- 初学JAVASCRIPT 帮忙看看这段是什么意思,是一个独立的JS文件。有什么作用。
- 超难问题,俩个自动生成的radiobuttonlist 的联动问题,用js实现联动。
试试