Karl Blessing
Programmer
I have this so far (top half being "IF" it's IE)
[tt]
<% if instr(ucase(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE" <> 0 then %>
if (document.all(tree[j][2]).length > 1)
{
for (i=0; i<document.all(tree[j][2]).length; i++)
document.all(tree[j][2],i).checked = status;
}
else
{
document.all(tree[j][2]).checked = status;
}
<% else %>
if (document.layers(tree[j][2]).length > 1)
{
for (i=0; i<document.layers(tree[j][2]).length; i++)
document.layers(tree[j][2],i).checked = status;
}
else
{
document.layers(tree[j][2]).checked = status;
}
<% end if %>
[/tt]
so far I've tried .forms[index], .forms, .layers, and so forth, but nothing works, IE works perfectly. [sig]<p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
[/sig]
[tt]
<% if instr(ucase(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE" <> 0 then %>
if (document.all(tree[j][2]).length > 1)
{
for (i=0; i<document.all(tree[j][2]).length; i++)
document.all(tree[j][2],i).checked = status;
}
else
{
document.all(tree[j][2]).checked = status;
}
<% else %>
if (document.layers(tree[j][2]).length > 1)
{
for (i=0; i<document.layers(tree[j][2]).length; i++)
document.layers(tree[j][2],i).checked = status;
}
else
{
document.layers(tree[j][2]).checked = status;
}
<% end if %>
[/tt]
so far I've tried .forms[index], .forms, .layers, and so forth, but nothing works, IE works perfectly. [sig]<p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
[/sig]