Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<script>
Timer = null;
State = false;
Wait = 3000;
(function ($) {
$(document).ready(function () {
$('*').bind('mousemove click mouseup mousedown keydown keypress keyup submit change mouseenter scroll resize dblclick', function () {
clearTimeout(Timer);
if (State == true) {
$("body").html("<p>Welcome Back!</p>");
}
State = false;
Timer = setTimeout(function () {
$("body").html("<p>You've been for " + Wait/1000 + " seconds.</p>");
State = true; }, Wait);
});
$("body").trigger("mousemove");
});
}) (jQuery)
</script>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.5K 1.8K