为什么鼠标移上去背景不变色???(测试过,响应鼠标事件,不过不变色,迷惑....)该怎么做???
为什么鼠标移上去背景不变色???(测试过,响应鼠标事件,不过不变色,迷惑....)该怎么做???
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"
xmlns="http://www.w3.org/TR/REC-html40"
result-ns="">
<xsl:template>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match = "/">
<HTML>
<HEAD>
<style>
.mouseover {
background-color: #FFFFFF;
}
.mouseout {
background-color: #AAAAAA;
}
</style>
<script>
function mouseover(id)
{
id.className = "mouseover";
}
function mouseout(id)
{
id.className = "mouseout";
}
</script>
</HEAD>
<BODY>
<font id='aaa'>
<xsl:attribute name="onMouseOver">mouseover(this);</xsl:attribute>
<xsl:attribute name="onMouseOut">mouseout(this);</xsl:attribute>
变色</font>
</BODY>
</HTML>
</xsl:template>