• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTML:image tag question

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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;"
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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';"/>
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic