Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions /

Hover image issue - ImageFormAction


Reply


683 Views

Avatar
leafchild

Community Member, 41 Posts

21 June 2011 at 10:37am

I am using

ImageFormAction __construct( action $action, [title $title = ""], [image $image = ""], [hoverImage $hoverImage = null], [form $className = null], [ $form = null])
([url]http://api.silverstripe.org/2.4/forms/actions/ImageFormAction.html#method__construct[/url])

Submit works fine, the submit image is displayed but NOT $hoverImage.
Both submit and hover images are located at same directory.

so code is like this:

$actions = new FieldSet(
   new ImageFormAction('submit', 'Send', 'themes/test/images/contact_us/btn_send_normal.gif', 'themes/test/images/contact_us/btn_send_hover.gif')
);

How come hover image is not displayed properly??