How to create button that handles mouse events?

R

RickL

Hi,

I'm fairly new to web application development and I'm creating an
application for camera control, which leads to the question.

I want to create a button that can respond to mouse down and mouse
up events on the client-side. For example, suppose you have a button
to control the zoom lens on a camera. When you click down on the
mouse, the button would send a Zoom In command. When you release
the mouse, the button would send a Zoom Stop command.

This is fairly easy to do in an MFC or C# windows application. But I'm
not sure how to accomplish the same behavior on a web page.

From what I've read, this can be done with JavaScript. But I'm not sure
if I should use an asp:button or an HTML button, or maybe an image.

Thanks for any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top