css,js都可以接受, A标签是不能解决这事的.

解决方案 »

  1.   

    <div id="oo"> &nbsp;&nbsp;   
                                    
                                    <a   href= "ReportList.aspx?stype=1 "   class= "cred "> 名称 </a> &nbsp;&nbsp;   
                                    <a   href= "ReportList.aspx?stype=2 "   class= "cred "> 主编 </a> &nbsp;&nbsp;   
                                    <a   href= "ReportList.aspx?stype=3 "   class= "cred "> 内容 </a> &nbsp;&nbsp;   
                                    <a   href= "ReportList.aspx?stype=4 "   class= "cred "> 地名 </a> 
                                    <span   style= "float:right;   margin-top:2px;   margin-right:2px; "> <a   href= "login.aspx "   target= "_blank "   class= "cblue "> 登录管理 </a> &nbsp;&nbsp; <a   href= "suggest.aspx "   target= "_blank "   class= "cblue "> 意见与建议 </a> </span> 
                                    </div> 
    /**************************************************/
    var objDiv=document.getElementById("00");
    var objLinks=objDiv.getElementsByTagName("a");
    for(var i=0;i<objLinks.length;i++)
    {
       if(objLinks[i].href.indexOf("stype")!=-1)
     {
      objLinks[i].style.setAttribute("cssText","font-weight:800;color:red;");
     }
    }
    可以更加灵活的,留给你自己想了。
      

  2.   

    这种思路可以吗?var url=window.location.href;
    var s = url.substring(url.indexOf("=")+1,url.length);
    switch(s)
    {
    case "1":
    document.getElementById("msg").className="aaa";
    case "2":
    .........
      

  3.   

      <style type="text/css">
      .cred
      {
    font-weight:bold;
    color:red;
      }
      </style>这样行不行?