You will have to write your own taglib to do this. I wrote one that extended org.apache.struts.taglib.html.ImgTag and just added the call to RequestUtils.message to get the image location from the resource key and then output the onmouseover and onmouseout tags. Take a look at the source for ImgTag and you should be able to figure it out.

HTH

koen boutsen wrote:
Hi
I use <html:img bundle="imageBundle" pageKey="img.salesrep.delete" />
and get the image out of a resource file.
If the cursor moves over the image, I want to switch theimage via the onMouseOver event. Does anyone know how I can do this. The new image has to come out of the resource file.
I searched the archive, but could not find an answer.
Thank you
Koen




____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- Frank Maritato


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to