473,382 Members | 1,526 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,382 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 1800

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....
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...
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.