Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Hover image issue - ImageFormAction

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 590 Views
  • leafchild
    Community Member
    41 Posts

    Hover image issue - ImageFormAction Link to this post

    I am using

    ImageFormAction __construct( action $action, [title $title = ""], [image $image = ""], [hoverImage $hoverImage = null], [form $className = null], [ $form = null])

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.