• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to use onmousedown javascript functions ??

 
Greenhorn
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'"
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.-
 
Whose rules are you playing by? This tiny ad doesn't respect those rules:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic