Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

collapsable list

Status
Not open for further replies.

beeryman

Technical User
Nov 4, 2002
8
EU
I have frame that displays three lines as below:-

first name

second name

third name

When each name is clicked then the following happens

first name

xxxxxxx
xxxxxx

second name

my code to create the xxx part is
<H3>
<A HREF=&quot;page1.html&quot; onClick=&quot;return toggleMenu('menu1')&quot;
onmouseout=&quot;this.style.color = 'black';&quot; onmouseover=&quot;this.style.color = 'red';&quot; align=&quot;justify&quot;>
first name</A>
</H3>
<SPAN CLASS=&quot;menu&quot; ID=&quot;menu1&quot;>
xxxxx
xxxxx

For every heading i can manually code the above,
but is it possible to create the list (xxx)
from a text file,ie read in the file and then create the list items.The text file is created on a unix box
from one of my shell scripts (an up todate list of backups run today) and an ftp routine gets it to the local c: drive.
I am very new to javascript so any help
or pointers will be gratefully received

regards

bob
 
when first,second or third name is clicked
then a list appears underneath the heading.
when clicked again the list disappears.
I can see how to populate the list manually by entering individual lines within the span tags.
Is it possible to create the list items by reading lines
from a text file on the local harddrive.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top