or more fancier
http://dhtml-menu.com/dhtm
Main Topics
Browse All TopicsI want to click on the + sign it then expect to the next level. For example,
+ Vikki Pali (Current Review) <==== When I click on the + sign it shows below
- Vikki Pali (Current Review)
- Previous Review
Look like a menu structure.
Would anyone give me so idea how to do in ASP (JavaScript)? Giving me some sample codes are greatly appricated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
or more fancier
http://dhtml-menu.com/dhtm
I always found this pretty easy to do. Try doing this:
<script language="javascript">
function hideUnhide(idName)
{
var itemGiven = document.getElementById(id
if (itemGiven.style.display == "none")
{
itemGiven.style.display = "inline";
}
else
{
itemGiven.style.display = "none";
}
}
</script>
<a href="javascript: hideUnhide('foo'); void(0);">Click here to unhide</a> Vikki Pali<BR>
<div style="display : none;" id="foo">
All the text and display you want to show
</div>
Try putting this in your code, and it should provide you with a basis for doing what you want. Instead of the "Click here to unhide" you can put in some image of a plus box and a minus box, and put in some code to make it shift for you from one to another. I do this throughout my websites.
Regards,
D
you can find them in this page(Source tab on the link in my first post)
http://www.mattkruse.com/j
The original source file (6k)
Right-click and "Save As" to download this file: mktree.js or copy and paste the text from below.
NOTE: You also need to download mktree.css, plus.gif, minus.gif, bullet.gif
Thankyou so much appari.
Basically I get the expanded/collapsed work.
But I still have a problem associated with the empty line something related to the <li>
Below are an example.
+ Vikki Bill <-- When I clicks on the + sign, it expands but it displays double lines like below
- Vikki Bill
- Previous Review
====
What I want is
====
- Vikki Bill
- Previous Review
=====
Please shed the light why to cause a double lines as I have already spent 4 hours and dont find a solution for that.
Below my codes
<script language="JavaScript" type="text/JavaScript">
<!-- Define images used for expanded and collapsed the tree
img1=new Image();
img1.src="Image/plus.gif";
img2=new Image();
img2.src="Image/minus.gif"
ns6_index=0;
//-->
function change(e){
if(!document.all&&!documen
if (!document.all&&document.g
var source=document.getElement
if (source.className=="foldin
var source2=document.getElemen
if (source2[2+ns6_index].styl
source2[0].src="Image/minu
source2[2+ns6_index].style
}
else{
source2[0].src="Image/plus
source2[2+ns6_index].style
}
}
}
document.onclick=change
</script>
</head>
<style>
a:hover{color:red}
a{text-decoration:none}
.folding{cursor:hand}
ul li{list-style-type:upper-A
</style>
<body>
<tr>
<td><div align="left"> <a href="ViewAppraisalForm.as
<div><img src="Image/plus.gif" class="folding" width="20" height="20">
<%= Response.Write(FmyEmployee
<ul style="list-style-image:ur
<li><a href="ViewAppraisalForm.as
</ul>
</div>
</td>
===
I think the problem is related to the <li> and <style> but I really have no idea how to get rid of the double lines
Please help.
stiil doesn't work. Please
See below codes
<script language="JavaScript" type="text/JavaScript">
<!-- Define images used for expanded and collapsed the tree
img1=new Image();
img1.src="Image/plus.gif";
img2=new Image();
img2.src="Image/minus.gif"
ns6_index=0;
//-->
function change(e){
if(!document.all&&!documen
if (!document.all&&document.g
var source=document.getElement
if (source.className=="foldin
var source2=document.getElemen
if (source2[2+ns6_index].styl
source2[0].src="Image/minu
source2[2+ns6_index].style
}
else{
source2[0].src="Image/plus
source2[2+ns6_index].style
}
}
}
document.onclick=change
</script>
<style>
ul li{list-style-type:upper-A
</style>
<tr>
<td><div align="left"> <a href="ViewAppraisalForm.as
<div><img src="Image/plus.gif" class="folding" width="20" height="20"><% Response.Write(FmyEmployee
<ul style="list-style-image:ur
<li><a href="ViewAppraisalForm.as
</ul>
</div>
</td>
===
Do I need to change the style to overcome this problem?
===
Business Accounts
Answer for Membership
by: appariPosted on 2004-10-05 at 01:11:35ID: 12224638
check this link, can see working example and code. avascript/ mktree/ind ex.html
http://www.mattkruse.com/j