<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.4712.0">
<TITLE>Netscape Refreshing page after load</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello everone,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">here is my problem:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have a page with multiple divs with pictures in them, i set all attributes for them in HTML first öike this:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&lt;div id=&quot;blockDiv0&gt;&quot;</FONT> <FONT FACE="Arial">style=&quot;position: absolute; left: &lt;%=xstart(i)%&gt;; top: &lt;%=ystart(i)%&gt;; width: &lt;%=xplus(i)%&gt;; height: &lt;%=yplus(i)%&gt;;&quot;&gt; </FONT></P>

<P><FONT FACE="Arial">&lt;a href=&quot;javascript:reverseVisibility('blockDiv0','im0')&quot;&gt;</FONT>

<BR><SPAN LANG="sv"><FONT FACE="Arial">&lt;img name=&quot;im0&quot;</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT FACE="Arial">id=&quot;im</FONT></SPAN><SPAN LANG="sv"></SPAN><SPAN LANG="sv"><FONT FACE="Arial">0</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT FACE="Arial">&quot; src=&quot;transp400x500.gif&quot; width=&lt;%=xplus(i)-9%&gt; height=&lt;%=yplus(i)-65%&gt;&gt; </FONT></SPAN>

<BR><SPAN LANG="sv"><FONT FACE="Arial">&lt;/a&gt;</FONT></SPAN>

<BR><SPAN LANG="sv"><FONT FACE="Arial">&lt;/div&gt;</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">I alter the images src and border using javascript further down on the page by accessing them with </FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT FACE="Arial">document.layers[i].document.images[j].src = nsimageFalse.src </FONT></SPAN>
</P>

<P><SPAN LANG="sv"><FONT FACE="Arial">Where nsimageFalse is initialized like this</FONT></SPAN>

<BR><SPAN LANG="sv"><FONT FACE="Arial">nsimageFalse = new Image();</FONT></SPAN>

<BR><SPAN LANG="sv"><FONT FACE="Arial">nsimageFalse.src = &quot;</FONT><FONT FACE="Arial">chess</FONT><FONT FACE="Arial">.gif&quot;; </FONT></SPAN>
</P>
<BR>

<P><SPAN LANG="sv"><FONT FACE="Arial">The change works well and i see that the image have changed on screen, when all changes are donw and page is loaded</FONT></SPAN>

<BR><SPAN LANG="sv"><FONT FACE="Arial">completely, all the changes done with javascript goes away and Im left with the original image i set with html.</FONT></SPAN>

<BR><SPAN LANG="sv"><FONT FACE="Arial">It looks like the page is refreshed/redrawn for some reason.</FONT></SPAN>
</P>

<P><SPAN LANG="sv"><FONT FACE="Arial">Any1 know what I could be doing wrong or what i could have left out?</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN>
</P>
<BR>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Really appreciate all help i can get!</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Nisse</FONT></SPAN>
</P>

</BODY>
</HTML>