我想在jsp中动态更改所选菜单项的颜色,我在jsp页面中使用tile添加菜单项。请分享您的想法。先感谢您。
<table align="center" cellspacing="0" cellpadding="0" width="100%" height="100%" border="0">
<tr>
<td width="960" colspan="3" align="left" valign="middle" class="topPaddingSmall">
<div id="bluemenu" class="bluetabs">
<ul>
<li ><a href="<s:url action="homeLink"/>" class="linkss">Home</a></li>
<li><a href="<s:url action="showDataprofileLink"/>" class="linkss">Profile</a></li>
<!-- For Admin Alone -->
<% if (userTypeId == 1) {%>
<li><a href="<s:url action="addExerciseGroupLink"> <s:param name="pageName">1</s:param></s:url>" class="linkss">Exercise Group</a></li>
<li><a href="<s:url action="showDataInDropdownLink"></s:url>" class="linkss">Exercises </a></li>
<li><a href="<s:url action="customRoutineLink"><s:param name="pageName">1</s:param></s:url>" class="linkss">Templates</a></li>
<% } else {
%>
<li><a href="<s:url action="RoutinesLink" > <s:param name="pageName">1</s:param> </s:url>" class="linkss">My Routine</a></li>
<% }%>
<li><a href="<s:url action="logOut"/>" class="linkss">Log Out</a></li>
</ul>
</div>
<script type="text/javascript">
tabdropdown.init("bluemenu");
</script>
</td>
</tr>
</table>