Hi guys, I'm having some difficulty getting the following code snippit
to work:

    map(function (element) {
        connect(element, 'onmouseover', function (event) {
            toggleElementClass('tabHover', element);
        });
        connect(element, 'onmouseout', function (event) {
            toggleElementClass('tabHover', element);
        });
    }, getElementsByTagAndClassName('li', 'tab', 'tab-list'));

When I hover over the elements, it does not toggle that class. Now,
this might not be the right function to use, but I've tried a
combination of addElementClass(element, 'tabHover') and
removeElementClass(element, 'tabHover') and that hasn't worked either.
I'm not sure exactly what I'm missing and can't wait 'till I hear back
from you guys!

Thanks,
-Sam

Btw: I _LOVE_ the functional programming aspects of MochiKit, it just
doesn't get any better than that.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to