That's interesting - the method that Mike proposed:

this.div_.firstChild.setAttribute("class",newClass);

Works for me in any browser (I test with IE8,IE7,Chrome,Safari,Firefox
and Opera).

On Sep 11, 11:29 pm, Esa <[email protected]> wrote:
> On Sep 11, 2:36 pm, Esa <[email protected]> wrote:
>
> > I think there is a typo. Shouldn't it be "className" instead of
> > "class".
>
> >     ...setAttribute("className",newClass);
>
> Sorry about mis-information. I made some Googling and it seems that
> there is a cross browser issue.
>
> IE requires:
>
>     setAttribute("className",newClass);
>
> Other browsers:
>
>    setAttribute("class",newClass);
>
> A cross browser method is:
>
>    element.className = newClass;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to