Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML:image tag question

 
ashish kulkarni
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How can i have mouse effect in html:image tag, my original tag is given below, what will be the same in struts.
I want to get the images path from resource bundle, i have written it a bit like but dont know how to add the mouse over effects
my struts tag
"<"html:image property="login2" srcKey ="button.login" "&rt;
original tag:
"<"input type="image" value="Submit" name="login1" border="0" src="images/buttons/login_off.gif" width="75" height="24" on Mouse Out="MM_swapImgRestore()" on Mouse Over="MM_swapImage('login1','','images/buttons/login_on.gif',1)""&rt;"
 
Jeff Born
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try something like this:
<html:image property="homeButton" alt="home" src="images/home_off_tab.gif" on mouse over="this.src='images/home_off_m_over_tab.gif';" on mouse out="this.src='images/home_off_tab.gif';"/>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic