This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HTML:image  tag question" Watch "HTML:image  tag question" New topic
Author

HTML:image tag question

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
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;"


A$HI$H
Jeff Born
Greenhorn

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';"/>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HTML:image tag question