Hi,

Your code has a typo (`classe_add` rather than `class_add`). If you
fix that, it works fine:
http://jsbin.com/ireli

...but I'm guessing since you said it worked in Mozilla, that isn't
it. (Still, *why* don't people copy-and-paste rather than
retyping??!?!)

Try creating a minimalist, self-contained test page demonstrating the
problem. 90% of the time (at least), just the process of doing that
helps you find the answer; the other 10%, you have something you can
post so people can help you out.

HTH,
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com

On Dec 1, 1:50 pm, JB <jansen.nu...@gmail.com> wrote:
> Hello everybody!
>
> I have a problem with the IE8.
>
> addClassName and removeClassName  work in Mozilla but don´t work with
> IE8.
>
> follows the code:
>
> function change_bg(id,class_remove,class_add){
>
>           $(id).removeClassName(class_remove);
>           $(id).addClassName(classe_add);
>
> }
>
> How do I make in IE8.
>
> Thanks
>
> Jansen

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to