473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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

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(currlayerId, "none");
if(id)setDisplay(id, "block"); //block
currlayerId = id;
}

function setDisplay(id,value)
{
var elm = document.getElementById(id);
elm.style.display = value;
}
</script>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="header1">
<td width="83%">Business Foundation</td>
<td align="right" style="text-align: right" width="16%"><a href="#" onclick="toglayer('BF');return false;"><img border="0" src="image/errow%20down.jpg" width="13" height="14"></a></td>
</tr>
<tr>
<td class="oddrow" width="83%"><div id="BF" class="text" style="display:none">Description for business foundation</div></td>
<td class="oddrow" style="text-align: right" width="16%"></td>
</tr>
<tr>
<td class="header2" width="83%">Organization Setup</td>
<td class="header2" style="text-align: right" width="16%"><a href="#" onclick="toglayer('OS');return false;"><img border="0" src="image/errow%20down.jpg" width="13" height="14"></a></td>
</tr>
<tr>
<td colspan="2"><div id="OS" class="oddrow" style="display:none">description 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="toglayer(null)"><img border="0" src="image/errow%20up.jpg" width="13" height="14"></a></td>
</tr>[/HTML]
Aug 23 '07 #1
1 1783
acoder
16,027 Expert Mod 8TB
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
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...
5
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...
10
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...
0
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...
3
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...
2
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...
2
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...
3
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......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.