• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.-
 
Die Fledermaus does not fear such a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic