<HTML>
<HEAD>
<TITLE>
Dynamic Styles: Changing Styles1
</TITLE>
<STYLE>
    .bigred {font-size:24pt; color:red}
    .littlegreen {font-size:7pt; color:green}
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
function changeStyle() {
    document.all.tags("P").item(0).className 
	= "bigred";
    document.all.tags("P").item(1).className 
	= "littlegreen";}
</SCRIPT>
<BODY onclick="changeStyle()">
<P CLASS="littlegreen">Welcome!
<P>This document uses inline styles.
</BODY>
</HTML>