Hi Trevor,
True, but I didn't want to make assumptions about his requirements. I also
noted to myself that a single function which took a boolean parameter would
have worked, but if he was planning on extending these functions to do more,
I shouldn't have made the assumption that he needed a single function. So I
didn't!
Anyway, that's my story, and I'm stickin' to it! ;-)
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.
"Trevor L." <Trevor L.@Canberra> wrote in message
news:(E-Mail Removed)...
> Another way to write the [dis]appear function is
> function appear(param)
> {
> e = document.getElementById(param).style
> e.visibility = (e.visibility != 'visible') ? 'visible' : 'hidden
> }
>
> You then only have to call the one function:
> <script type="text/javascript">appear('div1')</script>
>
> Not tested but I use a similar function (which works) and I copied it from
> that.
>
> --
> Cheers,
> Trevor L.
> Website: http://tandcl.homemail.com.au
>