473,549 Members | 2,723 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to show multi layer by each click and no hide,

1 New Member
Hi
i want to show mutli layer by each click, and when i click next layer the first layer should be still display, until maybe 3rd or 4th or 5th layer all are displayed, and at the end when i click somewhere (maybe image) then close all layer.

my code are here

[HTML]<script type="text/javascript">
var currlayerId = null;
function toglayer(id)
{
if(currlayerId) setDisplay(curr layerId, "none");
if(id)setDispla y(id, "block"); //block
currlayerId = id;
}

function setDisplay(id,v alue)
{
var elm = document.getEle mentById(id);
elm.style.displ ay = value;
}
</script>
<table border="0" width="100%" cellspacing="0" cellpadding="0" >
<tr class="header1" >
<td width="83%">Bus iness Foundation</td>
<td align="right" style="text-align: right" width="16%"><a href="#" onclick="toglay er('BF');return false;"><img border="0" src="image/errow%20down.jp g" width="13" height="14"></a></td>
</tr>
<tr>
<td class="oddrow" width="83%"><di v id="BF" class="text" style="display: none">Descripti on for business foundation</div></td>
<td class="oddrow" style="text-align: right" width="16%"></td>
</tr>
<tr>
<td class="header2" width="83%">Org anization Setup</td>
<td class="header2" style="text-align: right" width="16%"><a href="#" onclick="toglay er('OS');return false;"><img border="0" src="image/errow%20down.jp g" width="13" height="14"></a></td>
</tr>
<tr>
<td colspan="2"><di v id="OS" class="oddrow" style="display: none">descripti on for organization setup</div></td>
</tr>

<tr>
<td class="header3" colspan="4">
Department</td>
<td style="text-align: right" class="header3" width="16%"><a href="#" onclick="toglay er(null)"><img border="0" src="image/errow%20up.jpg" width="13" height="14"></a></td>
</tr>[/HTML]
Aug 23 '07 #1
1 1794
acoder
16,027 Recognized Expert Moderator MVP
Please post all code using CODE tags.

I've moved your thread from the Articles section to the Forum section where it belongs and also removed "urgent" from the title.

Remove line 5 from your code to avoid hiding 'layers'.
Aug 23 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2486
by: Ajai Kumar .R | last post by:
Hai all, I've two or more forms on my app. My requirement is, Have to show the first form asa the user press a button have to hide the first form and show the second form. If the user press the escape key on second form, this should be hidded and should show the first form.... Can some one guide me how to achive this... (MUST USE SHOW &...
5
4485
by: Steve | last post by:
Visual Studio 2003 C# Windows: I have a tree view control as my main menu control down the left side of my application. This has 2 Parent Nodes on it (Jobs and Employees). beneath these 2 main functions I have 2 sub functions under each("Add Job", "View Jobs" and "Add User", "View Users"). I have theses subfunctions grouped in a...
10
3187
by: David | last post by:
Hi everyone, Hoping there are some .js/browser experts out there that can help with this weird problem. I have made a swap div routine and applied the events to menu buttons with a closer layer behind the menus. The closer div has a lower index than the submenu divs so it appears behind them. The closer div contains a transparent gif...
0
2083
by: Efkas | last post by:
I have a full custom application with some widged extending Controls like Label and PictureBox. I build a menu with these widgets. When I click on one of them, it calls a function to display some stuff in the main display area. The stuff to display is one of many assemblies loaded at the opening of the application by...
3
6372
by: Merlin | last post by:
Hi there, I am trying to create a form with an dynamic field that can be shown or hidden. As I saw for example on google it is possible with JS to show a layer and move the content underneath that layer further down uppon showing this layer. When a person closes that layer the content underneath the layer moves up again and closes the empty...
2
3360
by: stasteamb | last post by:
Can anyone help with this please? This is a copy of my code. <td width="20%"><div id="Layer1"> <p onclick="MM_showHideLayers('Layer2','','show')">Raymond</p> <p onclick="MM_showHideLayers('Layer2','','show')">Dave</p> <p onclick="MM_showHideLayers('Layer3','','show')">Reggie</p> </div>
2
2133
by: dusk | last post by:
Hi, I have a page with lots of hidden divs which are revealed based on choices made at each 'layer'. So I've used naming convention which represents the order in which each div becomes visible - 'a100', 'a200', 'a300' for the first 'layer'; 'b100', 'b200', 'b300' for the second; 'c100, 'c200', 'c300' for the third ... etc I'm writing...
3
3342
by: timplx | last post by:
Hello all, New to javascript and have never worked with programming languages like c++, so my logic in some of these statements might be incorrect or redundant Got a problem with my page... using java and external css to show/hide items on the same click. I found a script that uses the getElementById function to adjust the display style of a...
0
7520
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7957
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1941
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1059
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.