oop in javascript binding dom elements to objects -


hi point in right direction question.

i'm trying fathom object orientated javascript, having trouble getting head around binding dom elements objects.

i make little animated widget type thing web page. widget simple drop down tabs , (like tabs actual folder) want tab drop down bit mouseover event raise mouseout.

here current implementation, doesnt work @ moment it's mock http://bombinglish.com/

i want make class tabs , include open , close animation methods, methos add events, , other necessary fields. instanciate new object each tab. how do tell each object must must respond corresponding mouse events, or put way how bind dom element object?

if using javascript presentation logic, don't think it's worth try , wild oo.

if have @ top of every page, label tabs unique class name. in javascript file bind mouseover event on every dom element class name.

perhaps, others have differing opinions on however.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -