function bind(el, eventType, callback) { if (typeof el.addEventListener === 'function') { el.addEventListener(el, eventType, callback, false); } else if (typeof el.atteachEvent === 'function') { el.atteachEvent('on' + eventType, callback); } }
function bind(el, eventType, callback) { if (typeof el.addEventListener === 'function') { el.addEventListener(el, eventType, callback, false); } else if (typeof el.atteachEvent === 'function') { el.atteachEvent('on' + eventType, callback); } }