Events: event.srcElement - stores the element that fired the event handler. event.fromElement - the element we are coming from. event.toElement - the element we are moving to. if(ie4 && event.srcElement.tagName=="IMG") return BooleanVariable = containingElement.contains(childElement) ie4: rightEdge = document.body.offsetWidth bottomEdge = document.body.offsetHeight screen.width - screen resolution width. screen.availWidth - screen resolution width that is available. screen.height - screen resolution height. screen.availHeight - screen resolution height that is avaialble (-taskbar). document.body.clientWidth - browsers current usable width. document.body.clientHeight - browsers current usable height. window.event.screenX - x pixel coord of mouse relative to screen. window.event.screenY - y pixel coord of mouse relative to screen. window.event.clientX - x pixel coord of mouse relative to browser. window.event.clientY - y pixel coord of mouse relative to browser. ns4: rightEdge = innerWidth bottomEdge = innerHeight both: Initialize DHTML Browsers: ns4 = (document.layers) ? true:false ie4 = (document.all) ? true:false DHTML Block Assignment: if(ns4) block = document.blockDiv if(ie4) block = blockDiv.style []-------------------------------------------------------------------------[] | Event Properties and Descriptions. | []-------------------------------------------------------------------------[] | Event Event Handler Syntax Description | | | | click onClick User left clicks an element. | | submit onSubmit User submits a form, this event fires | | before the form submission. | | reset onReset User resets a form. | | focus onFocus User brings focus to an element. | | blur onBlur User loses focus from an element. | | mouseover onMouseOver User moves mouse over an element. | | mouseout onMouseOut User moves mouse off of an element. | | mousemove onMouseMove User moves mouse. | | change onChange User changes value in a text, textarea, | | or select field. | | select onSelect User selects (highlights) a portion | | of text in a text or textarea field. | | resize onResize User resizes browser window or frame. | | move onMove User moves browser window or frame. | | load onLoad Page completes loading. | | unload onUnload User exits page (by navigating to a | | new page or quitting browser). | | error onError An error occurs loading the document. | | abort onAbort User aborts image load with stop button. | []-------------------------------------------------------------------------[]