jQuery in Action, 3rd edition
The moose likes Struts and the fly likes HTML:image  tag question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HTML:image  tag question" Watch "HTML:image  tag question" New topic

HTML:image tag question

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 131
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

Joined: Sep 27, 2002
Posts: 23
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';"/>
I agree. Here's the link: http://aspose.com/file-tools
subject: HTML:image tag question
It's not a secret anymore!