Hi,
I know how to show and hide text, but I want to make it so that the
page shifts up when I hide my text. Right now with the simple code, it
only leaves a blank space.
Thanks,
Daniel
http://rail.blu-streak.com/galleries/system/1.php
scroll down to walks to see the show/hide buttons
shimmyshack - 28 Apr 2007 09:46 GMT
> Hi,
>
[quoted text clipped - 8 lines]
>
> scroll down to walks to see the show/hide buttons
instead of
e.style.visibility = 'hidden';
why not define a class in your css
.gone
{
visibility: hidden;
display: none;
}
and use
e.className = 'gone';
or check out one of the libraries for js effects, scriptaculous etc...
scripts.contact - 28 Apr 2007 11:55 GMT
> Hi,
>
> I know how to show and hide text, but I want to make it so that the
> page shifts up when I hide my text.
> http://rail.blu-streak.com/galleries/system/1.php
then use display:none
prince@dyumnin.com - 28 Apr 2007 17:57 GMT
> Hi,
>
[quoted text clipped - 8 lines]
>
> scroll down to walks to see the show/hide buttons
Display:none removes the element from the layout.
visibility:hidden keeps the element in the layout but does not show
the content.
using Display:none to forces a realignment of the page layout creating
the effect you want.
HTH Prince
--
http://dyumnin.com/webapps/howto/web_application_components_javascript.shtml
http://dyumnin.com
Dan - 30 Apr 2007 16:58 GMT
Thank you so much. This helps a lot