Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to fire mouse right click event on hotspot of a image map in asp.net..?
Posted
Comments
Sushil Mate 1-Aug-13 4:47am    
I don't think you need mouse right click event? what exactly you want to achieve here?
lukeer 1-Aug-13 5:53am    
The right mouse click event triggers a method. Call that method instead of faking a click.
ZurdoDev 1-Aug-13 9:08am    
As both have said, why do you want to? Just call the method instead.

1 solution

You can write the below code for it

JavaScript
$('#ImageID').mouseover(function() {
//  area is ur hotspot  position of the  image. 

var area= "100" 

if(parseInt($(e).css('z-index'))==  area)
{

 $('#ImageID').mousedown();
}
}) ;  
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900