[thelist] [DIVs] can one use a master div to show/hide other divs in sequence?

Jason Fields jason at v1c.net
Tue Jan 16 14:45:31 CST 2001


Heya Evolt peoples...

OK... I got a weird one here...

Basically I have created a GREAT site (in DHTML of course) which employs a
very large amount of DIVs... please feel free to perouse the site to be
farmiliar with my problem... in a sec...

<http://www.basho.com/> <-- launch the site... its the orange/gray arrows in
the bottom frame... see what I mean?

SO... when navigation laterally within each section... there are arrows
point to the left and to the right... each one is orange if live and gray
if non-active... you can navigate thru a said section by either clicking the
name of it in the subsection menu.... or by clicking the arrows at the
bottom of the page... which then allows you to go thru each section in
sequence... 

I have a special DIV for each of the subsection in each top level section...
and in turn each of the subsections has children as well... one of the
children layers is the arrows... the funny thing is that when I originally
programmed the site... i had no idea I was going to even add the arrows...
so they just kindof existed one day... no planning really... and thats where
my dilemma comes up... each subsection has its own child layer with the
arrows, javascript, etc associated with that DIV... so when you click on one
of the arrows it triggers all the other layer to hide/show themselves
appropriately... but... this brews some problems... a) there are too many
iterations of the same code floating around... b) its confusing as heck when
trying to add subsections... cause I have to remove/add all the hide/show
references again from scratch....

I had an idea that I could make one master DIV where the arrows exist... and
then thru DHTML/JavaScript I could assign some sort of array that stated the
sequence/names of DIVs and how they should be hidden/shown when the arrows
are clicked... as well as making the arrow go gray on the last frame/DIV and
vice versus when starting up....

Make any sense? I am really looking for someone who has done something like
this before... to look at their code... and maybe even usurp it for my
site... with credits of course...

Thanks again... and sorry for the super long email.... but its the only way
I could describe it...

Regards,
Jason.


------------------------------
v1 consulting
1730 20th street, lower unit
san francisco, ca 94107 usa

+1.415.642.2808  office.us
+1.415.823.5353  mobile.us
+1.603.697.8394  efax.us

+44.7092.21.1995 mobile.ec

http://www.v1c.net/
mailto:jason at v1c.net
------------------------------





More information about the thelist mailing list