Message on page
Example
Look below and you should see "Welcome to Computer Hope; helping you with ALL your computer Questions."
Source code
<p id="msg"></p>
<script type="text/javascript">
var messageNum = 0;
var m = document.getElementById("msg");
function messageChanger() {
if (messageNum == 0) {
m.innerHTML = "Welcome to Computer Hope.";
messageNum = 1;
}
else {
m.innerHTML = "Helping you with ALL Computer Questions.";
messageNum = 0;
}
}
//first message
messageChanger();
//Schedule the next message
setTimeout("messageChanger();", 3000);
</script>
