I\'m working on a website which requires mouseover menu\'s. I would not recommend mouseover menu\'s from an accessibility point of view, but it\'s pretty easy to implement using
You could time it.
function onImageMouseDown(e){
var d = new Date();
md_time = d.getTime(); // Milliseconds since 1 Apr 1970
}
function onImageMouseUp(e){
var d = new Date();
var long_click = (d.getTime()-md_time)>1000;
if (long_click){
// Click lasted longer than 1s (1000ms)
}else{
// Click lasted less than 1s
}
md_time = 0;
}