Created something for you. Don't use jquery, it is very bad and complete shit. Don't use javascript either, it is also very bad and also quite shitty.
http://ancientbb.com/tadatada.html
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Your test page</title>
</head>
<body>
<div id="testDiv">
hallo
</div>
<script src="/yourScript.js" type="text/javascript"></script>
</body>
</html>
javascript Code:
document.getElementById("testDiv").innerHTML = 'bye';
var timer = 0;
function timerFunc() {
timer = timer + 1;
var x = "error";
if(timer<10)
{
x="Good morning";
}
else if (timer<20)
{
x="Good day";
}
else
{
x="Good evening";
}
document.getElementById("testDiv").innerHTML = 'tada: ' + x;
setTimeout('timerFunc()',100); // wait 100 ms before recalling this function
}
timerFunc();
e:
SetInterval would be a nicer solution.