473,325 Members | 2,792 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,325 software developers and data experts.

Collapse/Expand Sections

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.className = 'showList';"
ondblclick = "this.className = 'defaultStyles';"
onmouseover = "this.style.color = 'black';"
onselectstart = "event.returnValue = 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=“ExecutiveSummary.pdf”>Executive Summary
</ul></div>
<div id="Section2"><ul onclick = "this.className = 'showList';"
ondblclick = "this.className = 'defaultStyles';"
onmouseover = "this.style.color = 'black';"
onselectstart = "event.returnValue = false;"><a>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=“ExecutiveSummary.pdf”>Executive Summary
</ul></div>
</body>


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

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

Similar topics

1
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...
7
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...
1
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
by: Gönen EREN | last post by:
how can i collapse or expand a node of treeview control programmaticly? thanks.
0
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...
2
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...
2
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...
0
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...
4
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...
1
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....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.