I don't know what it is I am doing wrong, I am trying to get the menus to
either expand or contract based on their previous states, i.e if already
expanded if clicked again contract, and if contracted, expand, so far it
doesn't work for the about and services link(but works for the expand all
and contract all links), any help would be greatly appreciated:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Welcom e </title>
<link rel="stylesheet " type="text/css"
href="style.css " />
<script type="text/javascript" src="simpletree menu.js">
</script>
</head>
<div id="wrapper">
<div id="header">
</div>
<table id="table">
<tr>
<td id="empty"></td>
<td rowspan="2" id="content">
</td>
</tr>
<tr>
<td id="menu">
Sidebar
<h4>Menu</h4>
<a href="javascrip t:ddtreemenu.fl atten('treemenu 1', 'expand')">Expa nd
All</a| <a href="javascrip t:ddtreemenu.fl atten('treemenu 1',
'contact')">Con tract All</a>
<ul id="treemenu1" class="treeview ">
<li>Home</li>
<li><a href="javascrip t:ddtreemenu.fl atten('treemenu 1about',
'contact')">Abo ut</a>
<ul id="treemenu1ab out">
<li>History</li>
<li>Job opportunities</li>
</ul>
</li>
<li><a href="javascrip t:ddtreemenu.fl atten('treemenu 1services',
'contact')">Ser vices</a>
<ul id="treemenu1se rvices">
<li>Virtual assistants</li>
<li>Website design and promotion
<ul>
<li>Website design</li>
<li>Search engine optimisation</li>
<li>Website promotion </li>
<liWebsite hosting</li>
</ul>
</li>
</ul>
</li>
<li>Faq</li>
<li>Contact</li>
</ul>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
either expand or contract based on their previous states, i.e if already
expanded if clicked again contract, and if contracted, expand, so far it
doesn't work for the about and services link(but works for the expand all
and contract all links), any help would be greatly appreciated:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Welcom e </title>
<link rel="stylesheet " type="text/css"
href="style.css " />
<script type="text/javascript" src="simpletree menu.js">
</script>
</head>
<div id="wrapper">
<div id="header">
</div>
<table id="table">
<tr>
<td id="empty"></td>
<td rowspan="2" id="content">
</td>
</tr>
<tr>
<td id="menu">
Sidebar
<h4>Menu</h4>
<a href="javascrip t:ddtreemenu.fl atten('treemenu 1', 'expand')">Expa nd
All</a| <a href="javascrip t:ddtreemenu.fl atten('treemenu 1',
'contact')">Con tract All</a>
<ul id="treemenu1" class="treeview ">
<li>Home</li>
<li><a href="javascrip t:ddtreemenu.fl atten('treemenu 1about',
'contact')">Abo ut</a>
<ul id="treemenu1ab out">
<li>History</li>
<li>Job opportunities</li>
</ul>
</li>
<li><a href="javascrip t:ddtreemenu.fl atten('treemenu 1services',
'contact')">Ser vices</a>
<ul id="treemenu1se rvices">
<li>Virtual assistants</li>
<li>Website design and promotion
<ul>
<li>Website design</li>
<li>Search engine optimisation</li>
<li>Website promotion </li>
<liWebsite hosting</li>
</ul>
</li>
</ul>
</li>
<li>Faq</li>
<li>Contact</li>
</ul>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
Comment