<html>
<head>
</head>
<body>
<img style="width:800px;height:600px;" id="img"
src="http://images.earthcam.com/ec_metros/newyork/newyork/lindys.jpg" onload="GetImg();" >
<script>
var i=0;
function GetImg()
{
  var pic=document.getElementById("img");
  pic.src="http://images.earthcam.com/ec_metros/newyork/newyork/lindys.jpg?ts="+new Date();
  i++;
  document.title="Over"+i;
  return;
}
</script>
</body>
</html>
这段代码是不断循环显示一张动态图片,另外i用来计数,但是一段时间后浏览器就报错,stack overflow at line 0,请问为什么?如何解决?