呵呵,典型的大小写问题,JavaScript 是大小敏感的语言,因此字符串比较时要特别注意!加个 toUpperCase() 就 OK 了!<script language="javascript">
<!--
function SetBgColor(Menu,Menucolor)
{
if (Menu.style.background.toUpperCase()!="#FFDDBB")
{
Menu.style.background=Menucolor;
}
}
function RestoreBgColor(Menu,Menucolor)
{
if (Menu.style.background.toUpperCase()!="#FFDDBB")
{
Menu.style.background=Menucolor;
}
}
-->
</script>
<!--
function SetBgColor(Menu,Menucolor)
{
if (Menu.style.background.toUpperCase()!="#FFDDBB")
{
Menu.style.background=Menucolor;
}
}
function RestoreBgColor(Menu,Menucolor)
{
if (Menu.style.background.toUpperCase()!="#FFDDBB")
{
Menu.style.background=Menucolor;
}
}
-->
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货