• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

How to use onmousedown javascript functions ??

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm trying to simulate the click of a button in my jsp, I have the code in html standard:

img src="/resource/images/btnOk.gif" alt="click" title="click here" on-Click="something" on-Mouse-Down="this.src='/resource/images/btnOkOn.gif'"
on-Mouse-Up="this.src='/resource/images/btnOk.gif'"

but I'm using struts and I want to use the application resource file to eliminate the source of the image:

html:image property="btnOk" on-click="return something" border="0" bundle="Images" srcKey="images.btn.ok.src" altKey="images.btn.ok.alt" titleKey="images.btn.ok.title"/

Does anybody can tell me how could I implement the onMouseDown and onMouseUp JavaScript event handlers using a message in my application resource ??

Thanks in Advance,
Alejadro.-
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic