导航条上文字的颜色默认的是黑色,我是想改成白色,不知道怎么改,附上js代码,请高手指教!// JavaScript Document
function MM_findObj(n,d)
{
var p,i,x;
if(!d)d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length)
{
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById)x=document.getElementById(n);return(x);
} function MSHL()
{
var i,p,v,obj,args=MSHL.arguments;
for(i=0;i<(args.length-2);i+=3)if((obj=MM_findObj(args[i]))!=null){v=args[i+2];
if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v='hide')?'hidden':v;}
    obj.visibility=v;}
}
function MN1(n)
{
document.write("<div id=Layer" + n + " style='position:absolute;'>");
document.write("<div id=serve" + n + " style='position:absolute; left:0px; top:14px; width:80px; height:30px; z-index:20; visibility: hidden;' onMouseOut=MSHL('serve" + n + "','','hide') onMouseOver=MSHL('serve" + n + "','','show')>");
document.write("<table width=110% border=0 cellspacing=1 cellpadding=3 bgcolor=#FBA002 class=TBMenu style='FILTER: alpha(opacity=85)'>");
document.write("<tr bgcolor=#F70303 class=MenuBG><td style='line-height:16px'>");
document.write("<table width=100% border=0 border=0 cellspacing=0 cellpadding=1 style=cursor:hand>");
}
function MN3(n)
{
document.write("<div id=Layer" + n + " style='position:absolute'>");
document.write("<div id=serve" + n + " style='position:absolute; left:0px; top:14px; width:120px; height:30px; z-index:20; visibility: hidden;' onMouseOut=MSHL('serve" + n + "','','hide') onMouseOver=MSHL('serve" + n + "','','show')>");
document.write("<table width=110% border=0 cellspacing=1 cellpadding=3 bgcolor=#FBA002 class=TBMenu style='FILTER: alpha(opacity=85)'>");
document.write("<tr bgcolor=F70303 class=MenuBG><td style='line-height:16px'>");
document.write("<table width=100% border=0 border=0 cellspacing=0 cellpadding=1 style=cursor:hand>");
}
function MN(m,n)
{
document.write("<tr><td onmouseover=\"this.className='MenuColor';\" onmouseout=\"this.className='';\">");
document.write("<img src=images/blank.gif height=2 width=4><br><img src=images/blank.gif height=2 width=4><a href=\"");
if(m.substr(0,5) != "http:"){document.write("" + m + "\">" + n + "</a></td></tr>");}
else{document.write(m + "\">" + n + "</a></td></tr>");}
}
function MN2(i,m,n)
{
document.write("</table></td></td></tr></table></div></div>");
document.write("<a href=\"" + m + "\" onMouseOver=\"MSHL('serve" + i + "','','show','subscibe','','hide','order','','hide','feature','','hide','defuser','','hide','spread','','hide')\" onMouseOut=\"MSHL('serve" + i + "','','hide','subscibe','','hide','order','','hide','feature','','hide','defuser','','hide','spread')\">" + n + "</a>");
}
function MNL(){document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");} MN1(1);
    MN("touziyeji.html","投资业绩")
MN("zhuanyeteam.htm","组织结构")
MN("zhishigoucheng.htm","知识构成")
MN2(1,"#","走进我们")

MNL();
MN1(2);
    MN("jijinchanpin.htm","基金产品")
MN("ruanjianchanpin.htm","软件产品")
MN2(2,"#","产品")



/*MNL();
MN1(3);
MN("atf.htm","ATF")
MN("ate.htm","ATE")
MN("atm.htm","ATM")
MN("alpha.htm","alpha++")
MN("fundlab.htm","fundlab")
MN("jyzl.html","交易助理")
MN2(3,"#","程序化交易工具")
    */

/*MNL();
MN1(3);
MN("neirong.asp?id=1","前    言")
MN("dt.asp?leibie=课程教案","教案内容")
MN2(3,"dt.asp?leibie=课程教案","课程教案")
*/

MNL();
MN3(4);
MN("touzibaogao.html","股指期货PRO FORMA")
MN("jiaoyibaobiao.html","股指期货周行情综述")
MN("waihuiqiquan.html","外汇期权PRO FORMA")
MN2(4,"#","投资报告")
/*MNL();
document.write("<a href=pptindex.htm>摩旗视点</a>");
    */ MNL();
MN1(5);
MN("jinrongysp.htm","金融衍生品")
MN("chengxuhua.html","程序化交易")
MN("OffshoreFund1.htm","离岸基金")
MN("zhengce.html","政策法规")
MN("moqishidian.htm","摩旗视点")
MN2(5,"#","基础讲堂") MNL();
MN1(6);
MN2(6,"#","客户服务")

MNL();
document.write("<a href=hezuo.htm>合作伙伴</a>");
MNL();
document.write("<a href=zpzq.htm>公司招聘</a>");

解决方案 »

  1.   

    <style type="text/css">
    .TBMenu a{color: Black;}
    </style>
    加一下样式控制就好了。
      

  2.   

    zswang:
     
    用了你的方法,二级菜单的文字颜色可以改了,可是一级菜单还是没有改过来?
      

  3.   

    <style type="text/css">
    a{color: Black;}
    </style>
    -_-!!! 这样修改
      

  4.   

    问题终于解决了。
    原来,一级菜单和二级菜单是分开来设置的。
    谢谢zswang
    不熟悉js,用得好头痛,呵呵!