你这个可以这样改
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<STYLE TYPE="text/css"> <!-- 
body { font-family: Arial, Helvetica, sans-serif, Verdana; margin-left:0; margin-right:0; margin-top:0; margin-bottom:0; } 
input  { margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; } 
select { margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; } 
a { color:#0033CC; text-decoration:none } 
a:hover, a:active { color:#0033CC; text-decoration:underline } 
--> </STYLE> 
<title>Dell 2135cn MFP </title> 
</head> 
<body  bgcolor="#FFFFFF"  link="#0033CC" alink="#0033CC" vlink="#0033CC"> 
<style type="text/css"> 
<!-- 
body { margin-left:0; margin-right:0; margin-top:0; margin-bottom:0; border-bottom:1px ridge #666666; } 
--> 
</style> 
<div id="t" style="position:absolute; top:0px; left:0px; width:599px; height:140px; overflow:auto"> 
    <table border="0" cellpadding="0" cellspacing="0"> 
    <tr> <td nowrap> <font size=+1 color="#333333"> <b> 
    Dell 2135cn MFP </b></font>  </td> </tr> 
    <tr> <td nowrap> <font color="#666666"> 
    IPv4: 10.136.4.23 </font> </td> </tr> 
    <tr> <td> <font color="#666666"> 
    Location: </font> </td> </tr> 
    <tr> <td> <font color="#666666"> 
    Contact Person: </font> </td> </tr> 
    </table> 
</div> <div style="position:absolute; top:20px; left:630px; "> 
<a href="status/status.htm" target="RightFrame"> 
<img src="images/D2135cn_01.png" width=100 height=100 border="0"> </a> 
</div> <table style="height:100%; width:100%;"> <tr> <td> </td> </tr> </table> <form name="form1"> 
  <SELECT id="language"  name="language"  size="1">  
      <OPTION  selected>English </OPTION>          
      <OPTION  >Simple Chinese </OPTION> 
  </SELECT>  
</form> 
<input type="button" value="change" onclick="change_language(this)"/> 
<script language="javascript"> 
<!-- 
var EC=[
["简体中文","Simple Chinese"], 
["英文","English"], 
["改变","change"], 
["定位","Location"], 
["联系人","Contact Person"] 
];
function change_language(_this){ 
var select_obj=document.getElementById("language") 
var index = -select_obj.selectedIndex + 1; 
select_obj.options[0].text = EC[1][index];
select_obj.options[1].text = EC[0][index];
_this.value = EC[2][index];
var div = document.getElementById("t");
for(var i=3; i<EC.length; i++){
var reg = new RegExp(EC[i][select_obj.selectedIndex], "ig");
div.innerHTML = div.innerHTML.replace(reg, EC[i][index]);
}

//--> 
</script> </body> 
</html> 

解决方案 »

  1.   

    问楼主一个问题,作这个是为了应付领导的任务,还是为了最终用户使用
    如果是为最终用户考虑,你看一下你的功能实现有下面的问题:
    在显示为英文界面时,全部为英文词语,包括那个“Simple Chinese”, 
        想一下什么人才需要切换到中文:是不懂英文的才需要这个功能,
            这个界面中的“Simple Chinese”是不是应该显示为“简体中文”?
    同理,在显示为简体中文界面时,全部为中文词语,包括那个“英文”, 
        又有什么人才需要切换到英文:是不懂中文的,需要把这个界面中的那个"英文" 改成 "English"