Try the following code
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> </title>
<style type="text/css">
</style>
<script type="text/javascript">
//Store your testimonials in the following array.
var testimonials = [
"Testimonial 1",
"Testimonial 2",
"Testimonial 3",
"Testimonial 4",
"Testimonial 5",
"Testimonial 6",
"Testimonial 7",
"Testimonial 8",
"Testimonial 9",
"Testimonial 10",
"Testimonial 11",
"Testimonial 12",
"Testimonial 13",
"Testimonial 14",
"Testimonial 15"
];
window.onload = function(){
document.getElementById("testimonialEl").innerHTML = testimonials[Math.floor(Math.random()*testimonials.length)];
}
</script>
</head>
<body>
<div id="testimonialEl"> </div>
</body>
</html>
Bookmarks