Here it is with all of those minor issues I saw worked out:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
display.quotations = new Array();
display.quotations[0] = ["I have not failed. I've just found 10,000 ways that don't work.", "Thomas Alva Edison"];
display.quotations[1] = ["The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier.", "Bill Gates"];
display.quotations[2] = ["Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.", "Andy Rooney"];
display.quotations[3] = ["Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.", "Albert Einstein"];
display.quotations[4] = ["Whether you think that you can, or that you can't, you are usually right.", "Henry Ford"];
display.quotations[5] = ["To have a quiet mind is to possess one's mind wholly; to have a calm spirit is to possess one's self", "Hamilton Mabie"];
function display(){
var a = Math.floor(Math.random() * display.quotations.length),
d = document.getElementById('quotation'),
b = document.createElement('b'),
br = document.createElement('br');
while (d.lastChild)
d.removeChild(d.lastChild);
d.appendChild(document.createTextNode('"' + display.quotations[a][0] + '"'));
b.appendChild(document.createTextNode(display.quotations[a][1]));
d.appendChild(br); d.appendChild(b);
if (!display.running)
display.running = setInterval(display, 5000);
};
</script>
</head>
<body>
<div id="quotation"></div>
<script type="text/javascript">display();</script>
</body>
</html>
Bookmarks