网页上传到了国外的空间浏览时成了乱码,这是怎么回事啊?
我的网页在本地看正常,我上传到了国外的空间浏览时成了乱码,这是怎么回事啊?请同行帮忙啊?
这是在网址:http://www4.webng.com/laigaoat2005/index.asp
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<script language="javascript">
function outputs()
{
var m=document.m.a.value;
document.write("你输入的值是:");
document.write(m);
document.write("<br>按要求排出的结果是:<br>");
m++;
for (var i=1;i<m;i++)
{
if(i%7!=0)
{
document.write(i);
}
else
{
document.write(i);
document.write("<br>")
}
}
}
</script>
</head>
<body>
<form name="m" method="post">
输入你想输出的最大数:<input type="text" name="a"><br>
<input type="submit" onmousedown="outputs()">
</form>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<script language="javascript">
function outputs()
{
var m=document.m.a.value;
document.write("你输入的值是:");
document.write(m);
document.write("<br>按要求排出的结果是:<br>");
m++;
for (var i=1;i<m;i++)
{
if(i%7!=0)
{
document.write(i);
}
else
{
document.write(i);
document.write("<br>")
}
}
}
</script>
</head>
<body>
<form name="m" method="post">
输入你想输出的最大数:<input type="text" name="a"><br>
<input type="submit" onmousedown="outputs()">
</form>
</body>
</html>
[此贴子已经被作者于2007-6-12 19:05:30编辑过]