On 26-May-06, at 4:52 PM, Samuel Webster wrote:
> 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!
In addition to a full example, please tell us which browser/platform
you're using.
Thank you,
Beau
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---