换成字母就可以。ajax实现菜单效果
<head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<style type="text/css">
.menutop
{
color:#ccccff;
background-color:#0066ff;
text-decoration:underline;
cursor:hand;
border-right:#009999 thick double;
border-top:#009999 thick double;
border-left:#009999 thick double;
border-buttom:#009999 thick double;
}
.menulist{
color:#ff6600;
background-color:#33ccff;
display:none;
}
</style>
<script type="text/javascript">
function listmenu()
{
    //judge if the menu is opened
    var menudom=document.getElementById("menu");
    //if unopened,get the data from server,else,hided the data
    if(menudom.style.display=="none"||menudom.style.display=="")
    {
        //get the method of data from server
        getData();
        menudom.style.display="list-item";
    }
    else
    {
        menudom.style.display="none";
    }
}
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
function getData()
{
    //the method about when the state is changed
    xmlhttp.onreadystatechange=statechange;
    xmlhttp.open("GET","data.txt",true);
    xmlhttp.send(null);
}
function statechange()
{
    if(xmlhttp.readystate==4)
    {
        if(xmlhttp.status==200)
        {
            //asynchronous get method successful,display the data
            SplitData(xmlhttp.responseText); 
        }
    }
}
function SplitData(str)
{
    var indexofstr;
    var menuarray="";
    //cut the string
    while(str.length>0)
    {
        //judge the last string
        indexofstr=str.indexOf(",");
        if(indexofstr>0)
        {
            menuarray=menuarray+str.substring(0,indexofstr);
            str=str.substring(indexofstr+1);
            menuarray=menuarray+"<br/>";
        }
else{break;}
    
        
    }
    document.getElementById("menu").innerHTML=menuarray;
}
</script>
<body><div style="font-size:x-large;text-align:center;">使用Ajax+CSS實現的動態菜單功能
</div>
<div class="menutop" onclick="listmenu()">網站功能</div>
<div class="menulist" id="menu">
</div></body>
</html>
txt中 技术论坛,技术文章,灌水特区,服务特区, 各种编码我都试过了,菜单栏都无显示。不知道问题在哪,求教。