forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <kpiroum...@apache.org>
Subject Re: [POLL] Full vs. truncated menus
Date Fri, 07 Feb 2003 12:59:02 GMT
From: "Konstantin Piroumian" <kpiroumian@apache.org>
> From: "Morrison, John" <John.Morrison@uk.experian.com>
> > > From: Jeff Turner [mailto:jefft@apache.org]
> > > > >
...
>
> function expandMenu(id) {
>     obj = getElementById(id);
>     if (obj != null) {
>         obj.style = obj.style.display == "block" ? "none" : "block";

should be:
           obj.style.display = obj.style.display == "block" ? "none" :
"block";

>     }
> }
>
> and in HTML:
>
> <a href="#" onclick="javascript:expandMenu('NA1923')">Group A</a>
> <div style="display:block;" id="NA1923">
>
> Btw, I've posted a sample of show/hide-able menu somewhere in March-April,
> 2002. But that time it was concidered a bad idea. I'd try to find it, but
> it's faster to implement from scratch ;)

and here is the link to that thread:
http://marc.theaimsgroup.com/?l=forrest-dev&m=101620095321056&w=2

-- Konstantin



Mime
View raw message