chelvis
01-27-2004, 06:54 PM
Here is a code for expandable list. This is not working in NN 4.7.
Is there a way I can modify so it will work in NN 4.7?
<head>
<style type="text/css">
<!--
.open {
display: block;
}
.closed {
display: none;
}
li {
list-style-type: none;
padding-top: .2em;
padding-bottom: .2em;
font-size: 18px;
}
-->
</style>
<script type="text/javascript">
<!--
function toggle(id){
ul = "ul_" + id;
img = "img_" + id;
ulElement = document.getElementById(ul);
imgElement = document.getElementById(img);
if (ulElement){
if (ulElement.className == 'closed'){
ulElement.className = "open";
imgElement.src = "images/opened.gif";
}else{
ulElement.className = "closed";
imgElement.src = "images/closed.gif";
}
}
}
//-->
</script>
</head>
<body>
<table>
<tr><td valign="top">
<ul class="open">
<li id="item1"><a href="#" onclick="toggle('item1');"><img src="images/closed.gif" alt="" id="img_item1" border="0"></a> <a CLASS="LgBLueLink" href="#">Introduction: Dimensional Analysis: Similitude</a>
<ul id="ul_item1" class="closed">
<li id="item1_1"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_2"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_3"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
<li id="item2"><a href="#" onclick="toggle('item2');"><img src="images/closed.gif" alt="" id="img_item2" border="0"></a> <a CLASS="LgBLueLink" href="#">Introduction: Dimensional Analysis: Similitude</a>
<ul id="ul_item2" class="closed">
<li id="item1_41"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_42"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_43"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
<li id="item3"><a href="#" onclick="toggle('item3');"><img src="images/closed.gif" alt="" id="img_item3" border="0"></a> <a CLASS="LgBLueLink" href="#">Momentum Equation - The Newton's Laws</a>
<ul id="ul_item3" class="closed">
<li id="item1_41"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_42"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_43"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
</ul>
</li>
</ul>
</li>
<li id="item1_5"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Second Law of Thermodynamics</a>
<ul id="ul_item1" class="closed">
<li id="item1_1"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_2"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_3"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
<li id="item2"><a href="#" onclick="toggle('item2');"><img src="images/closed.gif" alt="" id="img_item2" border="0"></a> <a CLASS="LgBLueLink" href="#">Introduction: Dimensional Analysis: Similitude</a>
<ul id="ul_item2" class="closed">
<li id="item1_41"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_42"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_43"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
<li id="item3"><a href="#" onclick="toggle('item3');"><img src="images/closed.gif" alt="" id="img_item3" border="0"></a> <a CLASS="LgBLueLink" href="#">Momentum Equation - The Newton's Laws</a>
<ul id="ul_item3" class="closed">
<li id="item1_41"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_42"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_43"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
</ul>
</li>
</ul>
</li>
<li id="item1_6"><a CLASS="LgBlueLink" href="#">The Third Law of Thermodynamics</a></li>
<li id="item1_7"><a CLASS="LgBlueLink" href="#">The Momentum Equation - Newtons Laws</a></li>
</ul>
</li>
</ul>
</td></tr>
</table>
</body>
Is there a way I can modify so it will work in NN 4.7?
<head>
<style type="text/css">
<!--
.open {
display: block;
}
.closed {
display: none;
}
li {
list-style-type: none;
padding-top: .2em;
padding-bottom: .2em;
font-size: 18px;
}
-->
</style>
<script type="text/javascript">
<!--
function toggle(id){
ul = "ul_" + id;
img = "img_" + id;
ulElement = document.getElementById(ul);
imgElement = document.getElementById(img);
if (ulElement){
if (ulElement.className == 'closed'){
ulElement.className = "open";
imgElement.src = "images/opened.gif";
}else{
ulElement.className = "closed";
imgElement.src = "images/closed.gif";
}
}
}
//-->
</script>
</head>
<body>
<table>
<tr><td valign="top">
<ul class="open">
<li id="item1"><a href="#" onclick="toggle('item1');"><img src="images/closed.gif" alt="" id="img_item1" border="0"></a> <a CLASS="LgBLueLink" href="#">Introduction: Dimensional Analysis: Similitude</a>
<ul id="ul_item1" class="closed">
<li id="item1_1"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_2"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_3"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
<li id="item2"><a href="#" onclick="toggle('item2');"><img src="images/closed.gif" alt="" id="img_item2" border="0"></a> <a CLASS="LgBLueLink" href="#">Introduction: Dimensional Analysis: Similitude</a>
<ul id="ul_item2" class="closed">
<li id="item1_41"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_42"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_43"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
<li id="item3"><a href="#" onclick="toggle('item3');"><img src="images/closed.gif" alt="" id="img_item3" border="0"></a> <a CLASS="LgBLueLink" href="#">Momentum Equation - The Newton's Laws</a>
<ul id="ul_item3" class="closed">
<li id="item1_41"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_42"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_43"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
</ul>
</li>
</ul>
</li>
<li id="item1_5"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Second Law of Thermodynamics</a>
<ul id="ul_item1" class="closed">
<li id="item1_1"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_2"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_3"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
<li id="item2"><a href="#" onclick="toggle('item2');"><img src="images/closed.gif" alt="" id="img_item2" border="0"></a> <a CLASS="LgBLueLink" href="#">Introduction: Dimensional Analysis: Similitude</a>
<ul id="ul_item2" class="closed">
<li id="item1_41"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_42"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_43"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
<li id="item3"><a href="#" onclick="toggle('item3');"><img src="images/closed.gif" alt="" id="img_item3" border="0"></a> <a CLASS="LgBLueLink" href="#">Momentum Equation - The Newton's Laws</a>
<ul id="ul_item3" class="closed">
<li id="item1_41"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">Introduction</a></li>
<li id="item1_42"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The Equation of Contiuity</a></li>
<li id="item1_43"><img src="images/wh.gif"> <a CLASS="LgBlueLink" href="#">The First Law of Thermodynamics</a></li>
</ul>
</li>
</ul>
</li>
<li id="item1_6"><a CLASS="LgBlueLink" href="#">The Third Law of Thermodynamics</a></li>
<li id="item1_7"><a CLASS="LgBlueLink" href="#">The Momentum Equation - Newtons Laws</a></li>
</ul>
</li>
</ul>
</td></tr>
</table>
</body>