Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / April 2007



Tip: Looking for answers? Try searching our database.

show/hide text, but more...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dan - 28 Apr 2007 08:08 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. 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.