PHP Classes

File: dw_event.js

Recommend this page to a friend!
  Classes of david boardman   GPX Mapper & CMS   dw_event.js   Download  
File: dw_event.js
Role: Auxiliary data
Content type: text/plain
Description: Tooltip js
Class: GPX Mapper & CMS
Save maps GPX location files from coordinates
Author: By
Last change:
Date: 17 years ago
Size: 1,240 bytes


Class file image Download
/************************************************************************* dw_event.js (version date Feb 2004) This code is from Dynamic Web Coding at See Terms of Use at regarding conditions under which you may use this code. This notice must be retained in the code as is! *************************************************************************/ var dw_event = { add: function(obj, etype, fp, cap) { cap = cap || false; if (obj.addEventListener) obj.addEventListener(etype, fp, cap); else if (obj.attachEvent) obj.attachEvent("on" + etype, fp); }, remove: function(obj, etype, fp, cap) { cap = cap || false; if (obj.removeEventListener) obj.removeEventListener(etype, fp, cap); else if (obj.detachEvent) obj.detachEvent("on" + etype, fp); }, DOMit: function(e) { e = e? e: window.event; e.tgt = e.srcElement? e.srcElement:; if (!e.preventDefault) e.preventDefault = function () { return false; } if (!e.stopPropagation) e.stopPropagation = function () { if (window.event) window.event.cancelBubble = true; } return e; } }