Sorry, newbie..How catch mouse click on image ? 
Author Message
 Sorry, newbie..How catch mouse click on image ?
I need to catch a mouse click on an image!

Thanks.



Mon, 30 Dec 2002 03:00:00 GMT  
 Sorry, newbie..How catch mouse click on image ?
<SCRIPT Language=VBScript>
 sub myPic_onClick
    msgbox "MyPic clicked"
 end sub
</SCRIPT>
<BODY>
  <img src="logo.gif" id="myPic">
</BODY>



Quote:
> I need to catch a mouse click on an image!

> Thanks.

--
Chris Maguire
Co-op student, Power Measurement Ltd.
Graduating from Comp Tech in December!

Sent via Deja.com http://www.deja.com/
Before you buy.



Mon, 30 Dec 2002 03:00:00 GMT  
 Sorry, newbie..How catch mouse click on image ?
<IMG id=myimg src=whatever onclick="handleit()" language=vbs>

Then write a sub for the handleit() call.

steve


Quote:
> I need to catch a mouse click on an image!

> Thanks.



Mon, 30 Dec 2002 03:00:00 GMT  
 Sorry, newbie..How catch mouse click on image ?
Do images really always get onclick events fired in common browsers? The
reason I ask is that I have been doing <A HREF="#" to get an onclick event.
If I do not have to do this I will be happy.

Thanks

S

Quote:
> <IMG id=myimg src=whatever onclick="handleit()" language=vbs>

> Then write a sub for the handleit() call.

> steve



> > I need to catch a mouse click on an image!

> > Thanks.



Mon, 30 Dec 2002 03:00:00 GMT  
 Sorry, newbie..How catch mouse click on image ?

Depends on your definition of "common". if NS4 falls into this category,
then no, images do not always fire onclick events in common browsers. To
see which objects support which events in NS4, check the client-side
JavaScript reference at http://developer.netscape.com.

=-=-=
Steve
-=-=-


Quote:
> Do images really always get onclick events fired in common browsers? The
> reason I ask is that I have been doing <A HREF="#" to get an onclick event.
> If I do not have to do this I will be happy.

> Thanks

> S


> > <IMG id=myimg src=whatever onclick="handleit()" language=vbs>

> > Then write a sub for the handleit() call.

> > steve



> > > I need to catch a mouse click on an image!

> > > Thanks.



Mon, 30 Dec 2002 03:00:00 GMT  
 Sorry, newbie..How catch mouse click on image ?
Thanks. This is exactly what I wanted to know.

S

Quote:
> Depends on your definition of "common". if NS4 falls into this category,
> then no, images do not always fire onclick events in common browsers. To
> see which objects support which events in NS4, check the client-side
> JavaScript reference at http://developer.netscape.com.

> =-=-=
> Steve
> -=-=-



> > Do images really always get onclick events fired in common browsers? The
> > reason I ask is that I have been doing <A HREF="#" to get an onclick
event.
> > If I do not have to do this I will be happy.

> > Thanks

> > S


> > > <IMG id=myimg src=whatever onclick="handleit()" language=vbs>

> > > Then write a sub for the handleit() call.

> > > steve



> > > > I need to catch a mouse click on an image!

> > > > Thanks.



Mon, 30 Dec 2002 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Catching right mouse click on VB controls

2. CATCH mouse and keyboard clicks/presses?

3. X,Y Position of Mouse when Image is Clicked,

4. Buffering mouse clicks on buttons or images?

5. VB4: How can I trap a mouse click on a non-rectangular image

6. HOWTO: Display Multiple Images Upon Keypress and/or Mouse Click

7. newbie: click image, make radio button checked.

8. label click event only works with right mouse click

9. Mouse clicking without clickinmg the Mouse

10. How to include an ordinairy mouse-click in a right-click

11. MOUSE CLICK - SENDING CLICK

12. Enable/Disable mouse clicks and keyboard key clicks

 

 
Powered by phpBB® Forum Software