上传到服务器 除了IE8 其他浏览器不解释是怎么回事
js在本地测试全部浏览器通过可是上传到服务器 除了ie8 其他浏览器都不解释
代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
</head>
<body>
<div id="zq" style="margin:0px auto; display:none; width:900px; top:0px; height:200px; border:solid 1px #000; background-color:#fafafa; overflow:hidden; text-align:center; z-index:99;">
<img src="http://www. alt="图片未加载" />
</div>
<script type="text/javascript" language="javascript">
var time = 500;
var h = 0;
function addCount()
{
if(time>0)
{
time--;
h = h+5;
}
else
{
return;
}
if(h>200) //高度
{
return;
}
document.getElementById("zq").style.display = "";
document.getElementById("zq").style.height =(h+"px");
setTimeout("addCount()",30);
}
window.onload = function showzq()
{
addCount();
setTimeout("nonezq()",10000); //停留时间
}
</script>
<script type="text/javascript" language="javascript">
var T = 200;
var N = 200; //高度
function nonezq()
{
if(T>0)
{
T--;
N = N-5;
}
else
{
return;
}
if(N<0)
{
document.getElementById("zq").style.display = "none";
return;
}
document.getElementById("zq").style.height = N+"px";
setTimeout("nonezq()",30);
}
</script>
</body>
</html>