Google Answers Logo
View Question
 
Q: Javascript tree navigation ( No Answer,   2 Comments )
Question  
Subject: Javascript tree navigation
Category: Computers > Programming
Asked by: nathanlon-ga
List Price: $15.00
Posted: 04 Apr 2005 21:37 PDT
Expires: 03 May 2005 15:47 PDT
Question ID: 505054
My Javascript tree navigation is not working. I need the "technology"
branch to come under "physics" when "science" is expanded in Internet
Explorer 6. It works properly in Firefox.
http://crash.ihug.co.nz/~nathanln/treetest/test2.htm
You will need the files:
http://crash.ihug.co.nz/~nathanln/treetest/test2.htm
http://crash.ihug.co.nz/~nathanln/treetest/javascripts/tree.js
http://crash.ihug.co.nz/~nathanln/treetest/images/tree/folder_closed.gif
http://crash.ihug.co.nz/~nathanln/treetest/images/tree/folder_empty.gif
http://crash.ihug.co.nz/~nathanln/treetest/images/tree/folder_empty_open.gif
http://crash.ihug.co.nz/~nathanln/treetest/images/tree/folder_open.gif
http://crash.ihug.co.nz/~nathanln/treetest/css/category.css
http://crash.ihug.co.nz/~nathanln/treetest/css/webstore.css
Answer  
There is no answer at this time.

Comments  
Subject: Re: Javascript tree navigation
From: richchan-ga on 02 May 2005 21:08 PDT
 
It is probably caused by the error in relative positioning in IE.
Try replacing 
##########
a.Branch, a.Tree, a.BranchEmpty, a.BranchEmptyOpen
{
	position: relative;
	top: 2px;
	text-decoration: none;
	color: #006699;
}
##########
with
##########
a.Branch, a.Tree, a.BranchEmptyOpen
{
	position: relative;
	top: 2px;
	text-decoration: none;
	color: #006699;
}
a.BranchEmpty
{
	position: static;
	top: 2px;
	text-decoration: none;
	color: #006699;
}
##########
In the category.css file.
Subject: Re: Javascript tree navigation
From: nathanlon-ga on 03 May 2005 15:47 PDT
 
Great, thanks richchan-ga, that has answered my question. I now just
need to re-align the text as it has shifted up a few pixels relative
to the navigation folders. Let me know how I can contact you. Nathan.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy