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

602 Views

Avatar
leafchild

21 June 2011 at 10:37am Community Member, 41 Posts

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??