[Javascript] show-hide layers in NN 6

Manuel Socarras Reyes msocarras at terra.es
Tue Aug 20 16:05:42 CDT 2002


  it works fine in
W'2000: IE 6.0, NN 4.7
MacOS 9.0.4: IE 5.0, IE 5.1, NN 4.78

it doesn't work in NN 6.2.1, neither in Windows nor in Mac. i guess it 
has something to do with the new DOM in NN 6. TIA,

---------------------------------------------------------------------------- 


<SCRIPT language="JavaScript">
function show_text(){
    if (document.all){
        document.all.textLayer.style.visibility= "visible";
    }else{
        document.textLayer.visibility= "show";
        // document.textLayer.visibility= "visible";
    }
}

function hide_text(){
    if (document.all){
        document.all.textLayer.style.visibility= "hidden";
    }else{
        document.textLayer.visibility= "hide";
        // document.textLayer.visibility= "hidden";
    }
}
</SCRIPT>

-- 
Saludos,

Manuel Socarrás Reyes <msocarras at terra.es>
Barcelona. Spain


> wich is the equivalent in NN6  (JS 1.5) for the property visibility = 
> show/hide?


Harry Love wrote:

>Manuel,
>Can you provide an example, preferably a URL?
>
>Regards,
>Harry
>

Peter-Paul Koch wrote:

> visible/hidden .  It has nothing to do with the JavaScript version, 
> BTW, only with NN4's strange implementation of CSS1.
>
> ppk









More information about the Javascript mailing list