Hello, im making a fact system, and I need a refresh script, For example when someone clicks on the "next fact" button, the "div" part (where the fact is displayed) refreshes. ONLY the div part. and the javascript below is externally loaded...
/ ==============================================
// Copyright 2004 by CodeLifter.com
// Free for all; but please leave in this header.
// ==============================================
var Fact=new Array() // do not change this!
// List of facts!
Fact[0] = "You are born with 300 bones but only have 206 as an adult because many of your bones fuse together and make bigger more solid bones.";
Fact[1] = "The word "queue" is the only word in the English language that is still pronounced the same way when the last four letters are removed.";
Fact[2] = "Beetles taste like apples, wasps like pine nuts, and worms like fried bacon.";
Fact[3] = "In 1386, a pig in France was executed by public hanging for the murder of a child";
Fact[4] = "Scientist have believed that there are more chicken in the world than any human
beings.";
// ======================================
// Generate the facts
// ======================================
var Q = Fact.length;
var whichFact=Math.round(Math.random()*(Q-1));
function showFact(){document.write(Quotation[whichFact]);}
showFact();
</script>
============================================================