Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add images to button with mouse over and mouse out?

 
teja maridu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one button and i want to add a onmouseover and onmouseout effect to that button. I have two images for both onmouseover and onmouseout effects I have tried this

<p:commandButton onmouseover="../images/add_on_18.png"
onmouseout="../images/add_off_18.png"
value="New"
actionListener="#{routeController.createNewRoute}"
update=":routeHeaderForm"/>

Can you help me?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to set the source.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic