aman0711
asked on
How to make a sublist item in navigation panel
Hi experts,
Can you please help me out with making two sublist items under the Executive Summary Link?
Something like:
Home
Executive Summary
-Application
-Aspect
Alerting
Contact us
my present code is below:
Can you please help me out with making two sublist items under the Executive Summary Link?
Something like:
Home
Executive Summary
-Application
-Aspect
Alerting
Contact us
my present code is below:
<%
String pageReg= "";
String exc="",asp="",al="",home= "",con="";
try{
pageReg=(String)request.getParameter("page").toString();
}catch (Exception e){home="class=\"submenu-current\"";}
if( pageReg.equals("summary")){
exc="class=\"submenu-current\"";
}else if(pageReg.equals("aspects"))
{
asp="class=\"submenu-current\"";
}else if(pageReg.equals("alerts"))
{
al="class=\"submenu-current\"";
} else if(pageReg.equals("contact"))
{
con="class=\"submenu-current\"";
} else {
if(pageReg.equals("home")){
home="class=\"submenu-current\"";
}
}
%>
<div id="left-col"> <!-- begin left column -->
<div class="inner">
<img border="0" src="../images/SI_Logo.PNG" width="155"
height="64">
<br>
<ul class="nav-list">
<ul class="submenu">
<li <%= home%>><a href="index.jsp">Home</a></li>
<li <%= exc%>><a href="ExeSum.jsp?page=summary">Executive Summary</a></li>
<li <%= al%>><a href="alert.jsp?page=alerts">Alerting</a></li>
<li <%= con%>><a href="contact.jsp?page=contact">Contact Us</a></li>
</ul>
</ul>
</div>
</div>
You just need to nest <ul> in <li>. What exactly is the trouble?
ASKER
Hi CEHJ,
So is this the way to do it?
<li <%= exc%>><a href="ExeSum.jsp?page=summ ary">Execu tive Summary</a></li>
<ul>Application</ul>
<ul><Aspect</ul>
????
Trouble is, When a user clicks on Application or Aspect, it should be highlighted
So is this the way to do it?
<li <%= exc%>><a href="ExeSum.jsp?page=summ
<ul>Application</ul>
<ul><Aspect</ul>
????
Trouble is, When a user clicks on Application or Aspect, it should be highlighted
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yeah, I got that :-)
CEHJ, I will post another important question in a while..
You have to give your suggestions on that :-)
Thanks in advance :-)
CEHJ, I will post another important question in a while..
You have to give your suggestions on that :-)
Thanks in advance :-)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>You have to give your suggestions on that :-)
OK
OK
ASKER
Thank you CEHJ, Objects :-)
ASKER
Thanks :-)
:-)
ASKER
CEHJ,
I am going to post the question I was talking about to discuss with you in few minutes, please guide me with that
I am going to post the question I was talking about to discuss with you in few minutes, please guide me with that