Anybody can help me out?
> jon stephens,
I> have tried this and I couldn't have luck in IE itself. What would you
s> uggest.
T> hanks,
B> alamurali
> > You're using document.layers[layerName].document, which you'd use to
a> ccess elements *inside* the div in NS 4, instead of just
d> ocument.layers[layerName] which accesses the div itself.
> Try this function to return the correct object reference for whatever
b> rowser is being used:
> function getStyleRef(id)
{> > var value = false;
> if(document.layers)
> value = document.layers[id];
> else
> {
> if(document.all)
> value = document.all[id];
> else
> {
> if(document.getElementById)
> value = document.getElementById(id);
> }
> if(value)
> value = value.style;
> } // end else
> return value;
}> // end function
> if(getStyleRef("myDiv"))
> getStyleRef("myDiv").visibility = "hidden";
> if(getStyleRef("yourDiv"))
> getStyleRef("yourDiv").visibility = "visible";
> // etc. ...
>