A Random Quote For Site Slogan
09.09.06 12:28 |
Code
window.onload = function() {
var quotes = [
"I wanna be a racecar passenger.",
"Alright, you're a cook - can you farm?"];
var i = Math.floor(Math.random()*quotes.length);
document.getElementsByTagName('h2')[0].innerHTML = '"' + quotes[i] + '"';
}
Don't forget to add blank lines before and after the JS!
|