Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Need help with JavaScript


Fotiman - 1:21 pm on Jul 7, 2010 (gmt 0)


Note, in my example I assigned an "event handler" (assigning a function to the onmouseover property of an element, there can only be one). A better approach would be to attach "event listeners" (of which there can be many). If you use any sort of JavaScript framework/library (jQuery, YUI, prototype, etc.), then use the methods defined by that library for attaching event listeners. Otherwise, you might consider rolling your own method for attaching event listeners.


Thread source:: http://www.webmasterworld.com/javascript/4165486.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com