document.write loop not working remotely
<p>The problem: doesnt output an image. image name (1).jpg up to (42).jpg</p>

<pre><code>&lt;script type=text/javascript&gt;
  var i=1;
    while (i&lt;=42) {
      document.write("&lt;div style=min-height:200px; onmouseover=\"innerHTML=\'&lt;img style=width:800px; src=(");
      document.write(i);
      document.write(").jpg/&gt;\'\"&gt;Hover&lt;/div&gt;" + i);
      i++;
  }
&lt;/script&gt;
</code></pre>

<p>Additional info:</p>

<ul>
<li>tried this locally with wamp and it worked fine</li>
</ul>
