473,836 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

collapsable lists?

How do you make a collapsable list in html? I remember doing it in the past
but cant remember how exactly to.. thanks!
Nov 19 '05 #1
1 1399
You could put whatever you want to collapse in a div and then in javascript
set the display property of the DIV accordingly:

function HideSelectedDiv (obj)
{
if (document.all(o bj).style.displ ay=="block")
{
document.all(ob j).style.displa y="none";
}
else
{
document.all(ob j).style.displa y="block";
}
}

where obj is the name of the div.
"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:OR******** ******@TK2MSFTN GP15.phx.gbl...
How do you make a collapsable list in html? I remember doing it in the
past but cant remember how exactly to.. thanks!

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2989
by: Tom McCrossin | last post by:
I'm not even sure what to call them. At several Microsoft sites, they have these cool collapsible controls. An example is at http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28001891 or http://msdn.microsoft.com/sharepoint I've done similar to this using only DHTML, but was wondering if there was
2
1420
by: news | last post by:
Is there a way to write an XML doc so that you can still format the text, bold and whatnot, and still have it display in a collapsable tree format? Here's what I'm using as a test: <?xml version="1.0" encoding="iso8859-1"?> <?xml-stylesheet type="text/css" href="xml-style.css"?> <result> <date>2005-05-19
0
1172
by: Steve | last post by:
Visual Studio 2003 .NET / C# My current application has a Treeview control down the left hand edge permanently, and this object acts as my main menu controller. What I want though is for this to be a collapsable menu object, like what you get in Visual Studio with the Solution Explorer when you toggle AutoHide. Is this possible? Thanks
3
1415
by: The Bear | last post by:
Is there a way to create a collapsable datagrid. Where multiple areas of the grid can be expanded or collapsed? Using C# and Windows Forms
7
1469
by: Rlrcstr | last post by:
How would one implement collapsable paragraphs of text in an HTML page? I want the sections of the document to be expandable for full text or collapsed into just the section heading. Any help is appreciated. Jerry
6
4231
by: Duncan | last post by:
Does anybody know how the following can be acheived using html or xhtml? I need to present colleagues with a 'to-do' list. Lets say the list has ten or so jobs and each job consists of five or so steps, most colleagues will already know how to perform a number of these jobs, so rather than show all jobs with all steps, by default, I'd like to have the steps for each job collapsed. Colleagues who didn't know how to perform a...
1
2481
by: t f | last post by:
Hi Is there a collapsable panel available in c#, e.g. like the toolbox / solution explorer etc... Or would one have to develop one? thanks t f
2
1802
by: tim | last post by:
I am creating a menu tree using a unordered lists using a script called 'simplemenu' that i have come accross and just have a couple of problems with it. I was originally using a javascript based script named 'foldoutmenu'. I was informed that it wasn't the best script and i have changed to use a more simple css based script. 1I have three main problems, firstly, I would like each menu to collapse when the next one is opened alike my...
0
10819
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...
0
10526
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10570
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
10240
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5641
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5811
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4438
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
4000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3100
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.