Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help in using image tag

 
ashish kulkarni
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have HTML image tag where in i want to swap the
image on mouse over event, i want to get the mouse
over image also from the properties file, how can i do
it,
Here is the tag i am using, but i have hard coded the
value for onmouseover.
I have different images for different languages..
Is there any other way to do it
Need help
"<" html:image property="add"
on click="javascript:setAction('add')" srcKey
="button.addoff" onmouse out="MM_swapImgRestore()"
onmouse over="MM_swapImage('add','','../images/en/buttons/add_on.gif',1)"/">"
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using regular (non-Struts) html with a <bean:message> tag inside the "onMouseOver" attribute.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic