You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2002/09/04 16:40:39 UTC

html:image tag and onmouseover event

Hi,

I want to have a onmouseover effect for an image in <html:image ..> tag,

What i want is to replace a gif image when the mouse is over the image, and then replace it with the original when the mouse is out, I have defined my images in the resourse bundle (properties file), i can get the main image by using srcKey="button.loginoff" , but how do i get the image path for the other image when the mouse is over, here is my tag,  where the image for onmouseover effect is hardcoded, so any suggestion on doing it

here is my tag

<html:image property="login" srcKey ="button.loginoff" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('login','','images/buttons/login_on.gif',1)"/>

 


A$HI$H


---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes