the code for the program and the webpage is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<style type="text/css">
h1 {
color: red;
}
#quote {
position: absolute;
top: 50px;
left: 50px;
color: black;
width: 200px;
height: 200px;
border: 1px solid black;
}
</style>
<head>
<title>Timothy Stave</title>
</head>
<body>
<h1>Random Quote Generator</h1>
<div id="quote">
The random quote that you recieve now is:<br />
<script language="Javascript">
var Quotation=new Array()
Quotation[0] = "Time is of the essence! Comb your hair.";
Quotation[1] = "Sanity is a golden apple with no shoelaces.";
Quotation[2] = "Repent! The end is coming, $9.95 at Amazon.";
Quotation[3] = "Honesty blurts where deception sneezes.";
Quotation[4] = "Pastry satisfies where art is unavailable.";
Quotation[5] = "Delete not, lest you, too, be deleted.";
Quotation[6] = "O! Youth! What a pain in the backside.";
Quotation[7] = "Wishes are like goldfish with propellors.";
Quotation[8] = "Love the river's \"beauty\", but live on a hill.";
Quotation[9] = "Invention is the mother of too many useless toys.";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation(){document.write(Quotation[whichQuotation]);}
showQuotation();
</script>
<br /> Thanks for comming to my website!
</div>
<!--============================================================-->
</body>
</html>
My question is how would i add a CSS to the quote so that when i add authors i could add a class to the authors so that when it comes up the author would be bold and the text could be a different color.
If my question is unclear just let me know and i will try again. lol.
thanks in advance

New Topic/Question
Reply



MultiQuote





|