PDA

View Full Version : getting this CSS/JS to work in netscape 4


ventura
01-28-2003, 12:46 AM
does anyone know how to get this code to work in netscape 4 browsers? i've got it working in ie 4+ but i need to get the button formatting to work in netscape also.


<html>
<head>
<title></title>
<style type="text/css">
<!--
.actionButton {
font-size: 12px;
background-color: #FF6600;
border: 1px solid #000000;
cursor: hand;
width: 75px;
margin: 5px;
}
.actionButtonOver {
font-size: 12px;
background-color: #CCCCCC;
border: 1px solid #000000;
cursor: hand;
width: 75px;
margin: 5px;
}
-->
</style>
<script language="JavaScript">
function overButton(element) {
element.className = "actionButtonOver";
}
function outButton(element) {
element.className = "actionButton";
}
</script>
</head>
<body>
<form>
<input type="submit" value="Submit" onMouseOver="overButton(this)" onMouseOut="outButton(this)" class="actionButton">
</form>
</body>
</html>

whammy
01-28-2003, 01:15 AM
Netscape 4 browsers support a very limited amount of CSS. I personally wouldn't worry about it as long as it degrades well.

You might try using a simplified version of your CSS to test what does and doesn't work in NS 4.x, and go from there...