Hi,
I am having trouble with a specific Firefox problem; using Javascript I am changing the color of a span tag on the mousover event. It works fine under IE, not working under FF at all. Il will work probably with getElementById() but I don't want to put id's every where.
The code it looks like this.Please forget the text in the web page is not relevant ):
<html>
<head>
<style>
.txt2 {
font-size:9pt;
color: #000099;
font-family: Arial, Helvetica, sans-serif;
}
div.lay {background-color: #99CC99; color:#000099; border: 1px solid #333333; }
div.lay4 { background-color:#888888;
font-size:11pt;
font-variant: small-caps;
color: #99FF99;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
</style>
<script type="text/javascript">
function schmb()
{
var ref;
ref=(window.event.target) ? window.event.target : window.event.srcElement;
ref.style.color="#666699";
return;
}
function revin()
{
var ref;
ref=(window.event.target) ? window.event.target : window.event.srcElement;
ref.style.color="#000099";
return;
}
</script>
</head>
<body>
<table width="175"><tr><td>
<div class="lay" align="center">
<div class="lay4">Links</div>
<a href="#" style="text-decoration:none;" ><span class="txt2" onMouseOver="schmb();" onMouseOut="revin();" > Pagina principala </span></a><br>
<a href="#" style="text-decoration:none;"><span class="txt2" onMouseOver="schmb();" onMouseOut="revin();"> Comunicate & Evenimente </span></a><br>
<a href="#" style="text-decoration:none;"><span class="txt2" onmouseover="schmb();" onmouseout="revin();"> Hotarari ale CJSM </span></a>
</div>
</td></table>
</body
</html>
I am having trouble with a specific Firefox problem; using Javascript I am changing the color of a span tag on the mousover event. It works fine under IE, not working under FF at all. Il will work probably with getElementById() but I don't want to put id's every where.
The code it looks like this.Please forget the text in the web page is not relevant ):
<html>
<head>
<style>
.txt2 {
font-size:9pt;
color: #000099;
font-family: Arial, Helvetica, sans-serif;
}
div.lay {background-color: #99CC99; color:#000099; border: 1px solid #333333; }
div.lay4 { background-color:#888888;
font-size:11pt;
font-variant: small-caps;
color: #99FF99;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
</style>
<script type="text/javascript">
function schmb()
{
var ref;
ref=(window.event.target) ? window.event.target : window.event.srcElement;
ref.style.color="#666699";
return;
}
function revin()
{
var ref;
ref=(window.event.target) ? window.event.target : window.event.srcElement;
ref.style.color="#000099";
return;
}
</script>
</head>
<body>
<table width="175"><tr><td>
<div class="lay" align="center">
<div class="lay4">Links</div>
<a href="#" style="text-decoration:none;" ><span class="txt2" onMouseOver="schmb();" onMouseOut="revin();" > Pagina principala </span></a><br>
<a href="#" style="text-decoration:none;"><span class="txt2" onMouseOver="schmb();" onMouseOut="revin();"> Comunicate & Evenimente </span></a><br>
<a href="#" style="text-decoration:none;"><span class="txt2" onmouseover="schmb();" onmouseout="revin();"> Hotarari ale CJSM </span></a>
</div>
</td></table>
</body
</html>