# ImageMedia feature

**URL:** <https://forum.servoy.com/t/imagemedia-feature/905>\
**Category:** Classic Servoy\
**Created:** [December 25, 2003, 12:20pm UTC](https://forum.servoy.com/t/imagemedia-feature/905 "2003-12-25T12:20:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ron](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@Ron](https://forum.servoy.com/u/Ron)\
**Post date:** [December 25, 2003, 12:20pm UTC](https://forum.servoy.com/t/imagemedia-feature/905/1 "2003-12-25T12:20:41Z")

</div>

I use the rolloverImageMedia property for my buttons although it not behaves the way I want. What I would like is a ‘ClickedImageMedia’ option. Thus only when the mouse button is clicked the image appears. This way even more realistic behaving buttons (pressed and unpressed) can be made.

Merry Christmas to you all!

Ron

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [December 26, 2003, 3:04pm UTC](https://forum.servoy.com/t/imagemedia-feature/905/2 "2003-12-26T15:04:59Z")

</div>

This is doable with the onAction event, attach a a script which does something as the following:  
elements.mybutton.setImageUrl(‘media:///otherImage.gif’)
