I have this array:
var lists = new Array(
new Array(“Dictionaries”, “Oxford English Dictionary”, “
new Array(“Dictionaries”, “Dictionary.com”, “www.dictionary.com”),
new Array(“Dictionaries”, “Webopedia”, “www.webopedia.com”),
new Array(“News”, “BBC”, “www.bbc.co.uk”),
new Array(“News”, “CNN”, “www.cnn.com”),
new Array(“Shopping”, “Amazon”, “www.amazon.co.uk”),
new Array(“Shopping”, “eBuyer”, “www.ebuyer.com”),
new Array(“Shopping”, “Scan”, “Computers www.scan.co.uk”),
new Array(“Shopping”, “Play”, “www.play.com”),
new Array(“Shopping”, “eBay”, “www.ebay.co.uk”)
);
I would like to print it out like this:
[B]Dictionaries
Oxford English Dictionary
Dictionary.com
Webopedia
[B]News
BBC
CNN
[B]Shopping
Amazon
eBuyer
Scan Computers
Play
eBay
I would then like to add a function that makes the menu expand and collapse when you click on e.g “Dictionaries” the children of “Dictionaries” is shown.
Help would this would be much appreciated!
Thanks
Chris