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 / Browsers / Internet Explorer / June 2005



Tip: Looking for answers? Try searching our database.

really simple positioning question - XPosted

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephanie - 02 Jun 2005 16:37 GMT
I am a server-sider... I am trying to make a page which shows and hides
elements on the page when a hyperlink is clicked. What I cannot find is how
to have the stuff that is shown be next to each other when the hidden stuff
is hidden. Take this page (code at bottom). When About Me is clicked, the
paragraph that goes with it is shown. When the paragraph is not shown, I
want the What You Get at Steph's Place to be right below, not leaving space
for the stuff which is not beoing shown.

I think I used to know how to do this... but now I cannot remember. Thanks!

<!--#include file="include/page_top.asp"-->

<script>

if (document.layers) {

 visible = 'show';

 hidden = 'hide';

} else if (document.all) {

 visible = 'visible';

 hidden = 'hidden';

}

function barTog(menu) {

 if (document.layers) {

   daMenu = document.layers[menu];

 } else if (document.all) {

   daMenu = document.all(menu).style;

 }

 if (daMenu.visibility == visible) {

   daMenu.visibility = hidden;

 } else {

   daMenu.visibility = visible;

 }

}

</script>
<P>Click on the headings to read a little background about me, and what you
and your child(ren) get when they come to Steph's Place.</P>
<H1><a href="#" onclick="barTog('Background'); return false;">About
Me<a/></H1>
<div id=Background class=expandableElement><P>I am a 36 year old mother of
2, ages 4 1/2 and 21 months. I have been working
outside the home as a Software Engineer. My children have been in child
care,
both in a home and at a center. I would always have thoughts about what I
would
do differently. My husband would say, so start a day care of your own. So I
am.
</P>
<P>I have always wanted to run my own business. I am efficient and
organized. I
thought I would work for myself as a Software Engineer, but I had to face
the
fact that I don't like being a Software Engineer. What I would find really
enjoyable would be to hang out with little kids; laugh with them, play with
them, hold them when they cry.
</P>
<P>We've lives in Fairfax now for almost 2 years, and we are not much a part
of our
community. We love it here, and <em>want</em> to be part of the community.
The
best way to become part of the community would be to live and work in the
community. If I do not work in the Big Town of Burlington, my kids can go
to
school in Fairfax, play with friends in Fairfax, play sports in Fairfax.
</P></div> <!-- Background about me.-->
<H1><a href="#" onclick="barTog('get'); return false;">What you get at
Steph's Place</a></H1>
<div id=get class=expandableElement>

<h2><a href="#" onclick="barTog('ratio'); return false;">Low ratios and
lots of TLC</a></h2>
<div class=expandableElement id=ratio><P>The maximum number of children
allowed by a daycare is a lot. I do not intend to have that many children in
my care.</p></div>
<h2>Meals included</h2>
<h2>Committment to provider continuing education</h2>
<h2>Plenty of space for exploration and play</h2>

</div>

<!--#include file="include/page_bottom.asp"-->
Mark J. McGinty - 02 Jun 2005 18:05 GMT
>I am a server-sider... I am trying to make a page which shows and hides
>elements on the page when a hyperlink is clicked. What I cannot find is how
[quoted text clipped - 97 lines]
>
> <!--#include file="include/page_bottom.asp"-->

To hide:

   daMenu.style.display = "none";

To show:

   daMenu.style.display = "";

A value of "none" causes the element to not be rendered  An empty string
will restore the effective display style to its default; other valid values
include "block", "inline" and "list-item" (see tech ref for more details.)

-Mark
 
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.