PDA

View Full Version : [CLOSED] Ext:Image: How I can change the image when mouse over?



supera
May 10, 2012, 8:33 PM
Hi

I wish change the image when the mouse is over the ext:Image control.

But I not found the appropriated event (I'm trying find onMouseOver event)...

How I can do this?

Daniil
May 10, 2012, 8:50 PM
Hi,

Please try:

<Listeners>
<Render Handler="this.mon(this.imgEl, 'mouseover', function () { this.setImageUrl('image url'); }, this);" />
</Listeners>

Maybe, it will be more appropriate "mouseenter" and "mouseleave" events.

supera
May 11, 2012, 11:10 AM
hi Daniil

Works very fine with 'mouseenter' and 'mouseleave'.

Thanks a lot