close
<input id="button" type="submit" name="button" value="enter" onclick="setTimeout(check(),3000);"/>
var mouse=0;
document.getElementById('button').onmousedown = function() {
mouse=1;
$(this).after("<p style='color:blue;'>Mouse button pressed down.</p>");
};
document.getElementById('button').onmouseup = function() {
mouse=0;
$(this).after("<p style='color:red;'>Mouse button pressed up.</p>");
};
function check(){
alert('mouse');
}
全站熱搜
留言列表