# rolloverImageMedia

**URL:** <https://forum.servoy.com/t/rolloverimagemedia/18748>\
**Category:** Classic Servoy\
**Created:** [February 22, 2016, 2:53pm UTC](https://forum.servoy.com/t/rolloverimagemedia/18748 "2016-02-22T14:53:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![james.doonan](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@james.doonan](https://forum.servoy.com/u/james.doonan)\
**Post date:** [February 22, 2016, 2:53pm UTC](https://forum.servoy.com/t/rolloverimagemedia/18748/1 "2016-02-22T14:53:59Z")

</div>

Hi there,

Is there a way to code the rolloverImageMedia property? I cannot set it through the form designer and seem to have hit a brick wall.

Thanks,

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [February 22, 2016, 4:03pm UTC](https://forum.servoy.com/t/rolloverimagemedia/18748/2 "2016-02-22T16:03:19Z")

</div>

Hi James,

You code example is not a Servoy build-in function but a method in your solution (or of a framework you are using) so I have no idea what that function is doing for you.  
But I can answer your question in general.

You can set the rollover media using the following syntax:

```auto
Gets/Sets the image displayed on a button or label roll over; based on URL.
//dynamically sets a roll over image displayed on a button or label
elements.elem.rolloverImageURL = "http://www.servoy.com/images/test.gif";

//sets an image from your own image library
elements.elem.rolloverImageURL = "media:///arrow.gif";

//loads an image (BLOB) from a field in a selected record into HTML
elements.elem.rolloverImageURL = 'media:///servoy_blobloader?datasource='+controller.getDataSource()+'&dataprovider=image_data&mimetype=image/jpeg&rowid1=2';

```

(Example taken from the tooltip of this property)

I think the second example is what you are looking for.

Hope this helps.
