• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to use onmousedown javascript functions ??

Posts: 2
  • Mark post as helpful
  • send pies
  • 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'"

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,
Whose rules are you playing by? This tiny ad doesn't respect those rules:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic