kurtsimons
Oct 27th, 2000, 11:03 AM
It works in IE but not in Netscape (how i can I make it work in both.. I want to change the class of the area using javascript
------------------------
<html>
<head>
<style type="text/css">
.KN {color:rgb(0,255,255);
font-size:14pt;
font-style: normal;}
.KB {color:rgb(255,0,0);
font-size:17pt;
font-style: normal;}
</style>
</head>
<body bgcolor = "#1212FF">
<p id = "K1" Class = "KN">I want this text to be red, the KB class
</p>
<font color = white>it works in IE but not netscape
</body>
<script language = "JavaScript">
K1.className = "KB"
</script>
</html>
------------------------
<html>
<head>
<style type="text/css">
.KN {color:rgb(0,255,255);
font-size:14pt;
font-style: normal;}
.KB {color:rgb(255,0,0);
font-size:17pt;
font-style: normal;}
</style>
</head>
<body bgcolor = "#1212FF">
<p id = "K1" Class = "KN">I want this text to be red, the KB class
</p>
<font color = white>it works in IE but not netscape
</body>
<script language = "JavaScript">
K1.className = "KB"
</script>
</html>