Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js" type="text/javascript"></script>
</head>
<body>
<div>Hello javascript!</div>
<script type="text/javascript">
$(document).ready(function () {
function myRange(data) {
var myTime = data[Math.floor(data.length * Math.random())];
return myTime;
}
function mytimer() {
var timeArray = new Array(300, 200, 600, 700, 200, 3000);
$("div").toggle();
clearInterval(timer);
timer = setInterval(mytimer, myRange(timeArray));
}
var timer = setInterval(mytimer, 1000);
});
</script>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.5K 1.8K