Text Box Problem

liunx

Guest
Hi all!<br />
I created a web site with a text box (you know, when you have a scroll bar on the page, not on the browser) but it is not working on Netscape. A very weird bug is happening. First, it doesn't show anything. But then, a part of the text appears. And if you wait for a while, sometimes, it starts working! I'm going to put the source code in the end of this message.<br />
Besides that, I would like to know if my code would work on IE4. Does it support div and this kind of things?<br />
You can see my page at <!-- m --><a class="postlink" href="http://www.e-softonline.com.br/esquerdo.php?nome=empresa">http://www.e-softonline.com.br/esquerdo ... me=empresa</a><!-- m --><br />
<br />
Thanks!<br />
suPERLman<br />
<br />
source of the text box:<br />
<div id="texto" style="position:absolute; visibility: visibly; left:96px; top:92px; z-index:1"><br />
<table CELLSPACING=0 CELLPADDING=0 BORDER=0><br />
<tr><br />
<td COLSPAN=2><br />
<p><font SIZE=3><br />
<script language="javascript"><br />
if (screen.width==640)<br />
{<br />
document.write("<div class=\"font-2\" style=\"width: 540px;height: 210px;padding:0 10 10 10;overflow:auto\">");<br />
}<br />
else<br />
{<br />
document.write("<div class=\"font-2\" style=\"width: 700px;height: 328px;padding:0 10 10 10;overflow:auto\">");<br />
}<br />
</script><br />
the text of the hp<br />
</div><br />
</font><br />
</td><br />
</tr><br />
</table><br />
</div><!--content-->http://validator.w3.org/check?uri=http%3A%2F%2Fwww.e-softonline.com.br%2Fesquerdo.php%3Fnome%3Dempresa&charset=iso-8859-1+%28Western+Europe%29&doctype=HTML+4.01+Transitional <br />
<br />
I think you might want to fix these errors^^^. Then try it.<!--content-->I'm not sure if it matters but you have "visibly" instead of "visible" on your "texto" div. <br />
<br />
--------------------------------------------------------<br />
<div id="texto" style="position:absolute; visibility: visibly; left:96px; top:92px; z-index:1"><!--content-->Since you are document.writing anyway, omit overflow: none in netscape (not supported).<!--content-->thanks all!<br />
I could fix it. The problem was that my code had a div inside another div and netscape can't handle with this kind of situation.<br />
Now I'm going to make the hp adapt itself if the user is using a browser that doesn't support overflow. Do you know which IE version started to support it? Do netscape 6 (since the 5 doesn't exist! :) ) support it?<br />
<br />
Thanks!<br />
suPERLman<br />
<br />
here is the textbox source code:<br />
<script language="javascript"><br />
if (screen.width==640)<br />
{<br />
document.write("<div class=\"font-2\" style=\"position: absolute; visibility: visible; left:95px; top:93px; width: 540px;height: 210px;padding:0 10 10 10;overflow:auto\">");<br />
}<br />
else<br />
{<br />
document.write("<div class=\"font-2\" style=\"position: absolute; visibility: visible; left:95px; top:93px; width: 700px;height: 328px;padding:0 10 10 10;overflow:auto\">");<br />
}<br />
</script><br />
text<br />
</div><!--content-->
 
Back
Top