I have two files the style sheet "styles.ccs" and the html file (included). The problem is that if I use a tag to call the style sheet inside the html file it works - using the rollover. Yet if I use a class call to the external style sheet, it works yet fails on the rollover event using jscript. Any suggestions much appreciated thanks for your time Todd
the style sheet
input.menuBar{
font-family: Andale Mono;
font-size: 18;
color: rgb(48,100,136);
font-weight: bold;
text-align: left;
background-color:transparent;
border: 0;
the html file - try the rollover event on the second button
<html>
<head>
<style>
.start {
color:#ABCDEF;
text-decoration:underline;
background-color:transparent;
class="menuBar";
}
.end {
color:#0000FF;
text-decoration:none;
background-color:transparent;
}
#BttnStyle{
font-family: Andale Mono;
font-size: 18;
color: rgb(48,100,136);
font-weight: bold;
text-align: left;
background-color:transparent;
border: 0;
}
</style>
<script language="JavaScript">
</script>
<script ID="clientEventHandlersJS"
LANGUAGE="javascript">
<!--
function highlightButton(s) {
if ("INPUT"==event.srcElement.tagName)
event.srcElement.className=s
}
//-->
</script>
<title>dddddddd</title>
<link rel="stylesheet" type="text/css" href="styles.css" title="docProperties">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>
<body>
<form method="POST" action="ProcessType.asp" NAME="highlightInstructions"
onMouseover="highlightButton('start')" onMouseout="highlightButton('end')">
<p><input ID="BttnStyle" TYPE="submit" VALUE="instructions"
onClick="location.href='</form>
<p> </p>
<p> </p>
<p><input class="menuBar" type="button" value="Button" name="B1" size="20"
onMouseover="highlightButton('start')" class="menuBar" onMouseout="highlightButton('end')"
class="menuBar"></p>
<p> </p>
<p> </p>
</body>
</html>
the style sheet
input.menuBar{
font-family: Andale Mono;
font-size: 18;
color: rgb(48,100,136);
font-weight: bold;
text-align: left;
background-color:transparent;
border: 0;
the html file - try the rollover event on the second button
<html>
<head>
<style>
.start {
color:#ABCDEF;
text-decoration:underline;
background-color:transparent;
class="menuBar";
}
.end {
color:#0000FF;
text-decoration:none;
background-color:transparent;
}
#BttnStyle{
font-family: Andale Mono;
font-size: 18;
color: rgb(48,100,136);
font-weight: bold;
text-align: left;
background-color:transparent;
border: 0;
}
</style>
<script language="JavaScript">
</script>
<script ID="clientEventHandlersJS"
LANGUAGE="javascript">
<!--
function highlightButton(s) {
if ("INPUT"==event.srcElement.tagName)
event.srcElement.className=s
}
//-->
</script>
<title>dddddddd</title>
<link rel="stylesheet" type="text/css" href="styles.css" title="docProperties">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>
<body>
<form method="POST" action="ProcessType.asp" NAME="highlightInstructions"
onMouseover="highlightButton('start')" onMouseout="highlightButton('end')">
<p><input ID="BttnStyle" TYPE="submit" VALUE="instructions"
onClick="location.href='</form>
<p> </p>
<p> </p>
<p><input class="menuBar" type="button" value="Button" name="B1" size="20"
onMouseover="highlightButton('start')" class="menuBar" onMouseout="highlightButton('end')"
class="menuBar"></p>
<p> </p>
<p> </p>
</body>
</html>