473,808 Members | 2,869 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Collapse/Expand Sections

1 New Member
Hi all,

I am new to this. How do make the list in one div collapse when the other one expand? Here is what i have so far.

<body>
<div id="Section1">< ul onclick = "this.class Name = 'showList';"
ondblclick = "this.class Name = 'defaultStyles' ;"
onmouseover = "this.style.col or = 'black';"
onselectstart = "event.returnVa lue = false;">Forward Material</a>
<li><a href=“Cover.pdf ”>Cover
<li><a href=“Title.pdf ”>Title Page
<li><a href=“TOC.pdf”> Table of Contents
<li><a href=“Executive Summary.pdf”>Ex ecutive Summary
</ul></div>
<div id="Section2">< ul onclick = "this.class Name = 'showList';"
ondblclick = "this.class Name = 'defaultStyles' ;"
onmouseover = "this.style.col or = 'black';"
onselectstart = "event.returnVa lue = false;"><a>Forw ard Material</a>
<li><a href=“Cover.pdf ”>Cover
<li><a href=“Title.pdf ”>Title Page
<li><a href=“TOC.pdf”> Table of Contents
<li><a href=“Executive Summary.pdf”>Ex ecutive Summary
</ul></div>
</body>


Thank you very much!
Cotton
Apr 22 '10 #1
0 1814

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

Similar topics

1
22597
by: James Hurrell | last post by:
Hi, I'm using the following javascript function to expand and collapse portions of text in a web page (targeted at IE5.5 and above): function doExpand(paraNum,arrowNum) { if (paraNum.style.display=="none") { paraNum.style.display=""; arrowNum.src="collapse.gif"; }
7
17226
by: peter | last post by:
I use the click-to-expand menu at http://javascript.internet.com/navigation/click-to-expand-menu.html This works fine, but is there a way to expand or collapse all the menus? An example of how I use this is here: http://www.cod.edu/people/faculty/chenpe/PRAIRIE/index.html Thanks!
1
3359
by: Randy Starkey | last post by:
Hi, Is there a way to expand and collapse all if I have multiple implementations of this script on a single page? The script works well individually. Thanks! --Randy Starkey ---
4
3404
by: Gönen EREN | last post by:
how can i collapse or expand a node of treeview control programmaticly? thanks.
0
2562
by: Shadow Lynx | last post by:
When using ASP.NET 2.0's built-in TreeView on a page with <BASE target = "AnythingBut_Self"></BASE> in the HEAD, the expand/collapse buttons fail to function. The reason for this is that the hyperlinks generated for the expand/collapse buttons includes javascript code that will execute in the frame specified in the Base Target rather than the current document. To remedy this, TreeView should render a target="_self" attribute for each...
2
3727
by: Scamjunk | last post by:
I am a total JavaScript newbie and I got a JavaScript for maintenance that collapses/expands rows whenever the (-)/(+) GIFs are clicked. Could it be changed to do the same with radio buttons? on checking of a radio button the respective row should expand, else remain collapsed. and if another radio button is chosen then the row originally expanded should collapse. Is this doable? If so, what should I be changing in this code? TIA, Scam.
2
4668
by: sam | last post by:
Hi all, I have a series of divs in 2 blocks say BLOCK1 and BLOCK2 and I want to use one click to expand/collapse all those in each block. But the code I came up with exapands all the divs in the entire page. How do I restrict it to each block and also how do I cllapse those in each block and change the text to Collapse All. I am stumped here. Any help really really appreciated. Here is my code. Thanks,
0
2428
by: jim | last post by:
Hi, I have a TreeView control that sits on the MasterPage. All of my other webpages inherit from that Master Page. The Treeview receives it's data using an XMLDataSource that has it's DataFile property set to the Web.sitemap file. I have turned off the Expand/Collapse icons on the Treeview. I want to be able to single click a node in the tree view to
4
8362
by: Rabel | last post by:
I am not very good at javascript I mostly am a flash developer but I am trying to apply one of our old expanding menus to work for a new site but it doesn't collapse the way I need it to right now the code I am using looks like this function openSubCategory(n, nn) { var i = 0 for(i=1;i<n+1;i++) { var sel = document.getElementById('insideSubCategory'+i); sel.style.display = 'none';
1
1267
by: NoSpam Man | last post by:
Hi, New to asp.net, and using vb.net behind code. I want to have a basic page with some areas of the page, that I can collapse and expand so that I can hide or display sections of my web page. Each section will contain other controls that will mainly display static data. Is this an out of the box or standard asp/vb.net function, or do I need to get a customer web control?
0
9721
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10631
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10374
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9196
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
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
2
3859
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.