Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Tree Expand Javascript | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
TheGreatWhiteDope

Koopa
Banned
Level: 16

Posts: 94/108
EXP: 19462
For next: 794

Since: 01-05-05

Since last post: 8 days
Last activity: 4 days
Posted on 10-11-05 03:39 AM Link | Quote
Hmm I was wondering how I could make a javascript tree...... Well, I really don't know what to call it. I remebered a thread with an example of this (I can't seem to find it now) and it is used in Invision Board to Expand and Collapse forum categories. I looked up on how to make one of these codes but all I got was menu crap.

If you still dont kow what I'm talking about, it's like I have a table cell and a table header. In the header theres a -, when you hit it the table cell dissapears (Collapses) and the - turns to a +. Then, when I hit the + the table cell comes back (Expands) and the + turns to -. Tried to explain it best I could and in the noobiest way possible. xP
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 7603/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 10-11-05 05:12 AM Link | Quote
You mean like this?

- Animals
- Cats
Phoenix
Kitty
+ Dogs
- Vegetables
+ Corn
+ Spinach


I haven't tried this, but I imagine you could use a layout like this:
<table>
<tr id="main1">
<td>Animals</td>
</tr>
<tr id="animals1">
<td><img src="blank.gif" width=20>Cats</td>

etc... then put little +/- images in them that trigger Javascripts on click that show or hide various table rows. For example, next to 'Animals' would be an image that calls a script that shows or hides all table rows whose ID contains 'animals', and swaps the image to + or - accordingly. To space them properly, use blank images like I put before 'Cats'.
DarkSlaya
POOOOOOOOOOOORN!
Level: 88

Posts: 4180/4249
EXP: 6409254
For next: 241410

Since: 05-16-04
From: Montreal, Quebec, Canada

Since last post: 8 hours
Last activity: 5 hours
Posted on 10-11-05 05:21 AM Link | Quote
I believe this should be about right
Gavin

Fuzzy
Rhinoceruses don't play games. They fucking charge your ass.
Level: 43

Posts: 753/799
EXP: 551711
For next: 13335

Since: 03-15-04
From: IL, USA

Since last post: 13 hours
Last activity: 13 hours
Posted on 10-11-05 05:56 AM Link | Quote
or you could check out mine, which I actually posted in this forum probably no more than 1-2 months ago.
TheGreatWhiteDope

Koopa
Banned
Level: 16

Posts: 95/108
EXP: 19462
For next: 794

Since: 01-05-05

Since last post: 8 days
Last activity: 4 days
Posted on 10-11-05 05:58 AM Link | Quote
Originally posted by TheGreatWhiteDope
I remebered a thread with an example of this (I can't seem to find it now)


Yeah, thats the thread I was looking for, I'll see if this works, thanks.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - Tree Expand Javascript | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.013 seconds.