[thelist] js hide layer function
Bob Davis
bobd at lists.evolt.org
Tue Oct 3 13:25:28 CDT 2000
I've been beating my head on this one for a couple hours, and can't seem to
get it to work:
function HideAll () {
var l = document.all.layers.length
for ( var i=0;i < (l -1); i++) {
document.layers[i].style.visibility='hide';
}
}
I'm getting a 'document.all.layers.length is not an object' error in Mac
IE5, (same if I remove the 'all') though I know it works in other scripts.
Any hints?
thanks.
bob
--
bob davis
bobd at members.evolt.org
More information about the thelist
mailing list