[Proto-Scripty] Re: Observe onmouseover and onmouseout with IE6

2009-05-22 Thread david
Hi Matt, I test the pasted code, but it did not Work ! Perhaps a small extract of the original script. btw you're though is interresting. -- david On 21 mai, 23:21, Matt Foster wrote: > What is surprising to me is that the "this" scope ever actually worked > inside the event handlers. > > Had

[Proto-Scripty] Re: Observe onmouseover and onmouseout with IE6

2009-05-21 Thread Matt Foster
What is surprising to me is that the "this" scope ever actually worked inside the event handlers. Had you left the handle alone I know that Proto would have bound the element to the handler such that "this" would assume the value of the element, but since you explicitly set "this" via bind in the

[Proto-Scripty] Re: Observe onmouseover and onmouseout with IE6

2009-05-21 Thread Dravis
David, Thank you so much! This is exactly what I needed and it worked perfectly. Thank you for taking the time to answer! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post t

[Proto-Scripty] Re: Observe onmouseover and onmouseout with IE6

2009-05-20 Thread david
Hi, Here is the same code that work in FF3.0 and IE6 (could not test other browser): document.observe("dom:loaded", function() { $$('#mainmenu li').each(function(item) { item.observe("mouseover", function() { this.addClassName("sfhover");