Extends the <jLogger> class to capture scroll events.
| mootools | Moo.js, Utility.js, String.js, Array.js, Function.js, Element.js, Dom.js |
| cnet libraries | dbug.js, jlogger.js |
Aaron Newton, <aaron [dot] newton [at] cnet [dot] com>
| jlscroller.js | Extends the <jLogger> class to capture scroll events. |
| JlScroller | Adds Scroll captures to the jlogger class; extends <jlogger>. |
| Change Log | $Source: /cvs/main/flatfile/html/rb/js/global/cnet.global.framework/common/utilities/jlscroller.js,v $ $Log: jlscroller.js,v $ Revision 1.6 2007/03/28 18:09:03 newtona removing $type.isNumber dependencies |
Adds Scroll captures to the jlogger class; extends <jlogger>.
| options | optional, an object containing options. |
| scrollTo | {top: #|element, bottom: #|element} |
| bottom: (optional) | if left empty, the range will be zero (i.e. top = bottom) |
//capture a scroll to 800 pixels
new jlogger({
ontid: '20',
siteId:'4',
pId:'2001',
tag:'scrollTo800',
fireOnce: false,
event: 'scrollTo',
scrollTo: {top:'800'}
});
//capture scroll to the top of an element
new jlogger({
ontid: '20',
siteId:'4',
pId:'2001',
tag:'scrollBoxTop',
fireOnce: false,
event: 'scrollTo',
scrollTo: {top:'myElement'}
});
$Source: /cvs/main/flatfile/html/rb/js/global/cnet.global.framework/common/utilities/jlscroller.js,v $ $Log: jlscroller.js,v $ Revision 1.6 2007/03/28 18:09:03 newtona removing $type.isNumber dependencies
Revision 1.5 2007/03/10 00:31:10 newtona .pingDW is now just .ping element and event are no longer required (so jloggers can just get fired inline) executeNow is deprecated; just use new Jlogger().ping() added support for cval and ctype
Revision 1.4 2007/03/09 20:15:03 newtona numerous bug fixes
Revision 1.3 2007/01/26 05:56:03 newtona syntax update for mootools 1.0 docs update
Revision 1.2 2007/01/22 21:54:17 newtona updated for mootools version 1.0 updated namespaces to capitazlied values
Revision 1.1 2007/01/09 02:39:35 newtona renamed addons directory to “common” directory
Revision 1.2 2006/11/04 00:52:21 newtona added docs, fixed a little syntax
Revision 1.1 2006/11/03 19:41:25 newtona moving jlscroller class into it’s own javasacript file
function $A( array, start, length )
Use to iterate through iterables that are not regular arrays, such as builtin getElementsByTagName calls, arguments of a function, or an object.
function $each( iterable, fn, bind )
returns the element passed in with all the Element prototypes applied.
function $( el )