matthew016
asked on
Javascript location
Hi,
I want to handle a menu (highlighting item when user click on the item) with javascript.
can I put the javascript code just before the html code of the menu ?
I'm asking this because the menu is in a separate jsp file.
**** menu_top.jsp ****
<div id="menu_top">
<div>
Manage:
<ul>
<li><a href="/users">Users</a></l i>
<li ><a href="Setup?do=menu_collec tions">Col lections</ a></li>
<li><a href="/indexes">Mode Test</a></li>
<li><a href="Setup?do=menu_option s">Options </a></li>
</ul>
</div>
<hr class="separator"/>
</div>
**** collections.jsp (including the menu) ****
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style- Type" content="text/css">
<LINK href="theme/master.css" rel="stylesheet" type="text/css">
<LINK href="theme/header.css" rel="stylesheet" type="text/css">
<LINK href="theme/menu_top.css" rel="stylesheet" type="text/css">
<LINK href="theme/menu_left_inde x.css" rel="stylesheet" type="text/css">
<LINK href="theme/footer.css" rel="stylesheet" type="text/css">
<TITLE>Fortis Crawler Admin</TITLE>
</HEAD>
<BODY id="body">
<jsp:include page="incl/header.jsp"/>
<jsp:include page="incl/menu_top.jsp"/>
<jsp:include page="incl/menu_left_index .jsp"/>
[...]
Thank u.
I want to handle a menu (highlighting item when user click on the item) with javascript.
can I put the javascript code just before the html code of the menu ?
I'm asking this because the menu is in a separate jsp file.
**** menu_top.jsp ****
<div id="menu_top">
<div>
Manage:
<ul>
<li><a href="/users">Users</a></l
<li ><a href="Setup?do=menu_collec
<li><a href="/indexes">Mode Test</a></li>
<li><a href="Setup?do=menu_option
</ul>
</div>
<hr class="separator"/>
</div>
**** collections.jsp (including the menu) ****
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-
<LINK href="theme/master.css" rel="stylesheet" type="text/css">
<LINK href="theme/header.css" rel="stylesheet" type="text/css">
<LINK href="theme/menu_top.css" rel="stylesheet" type="text/css">
<LINK href="theme/menu_left_inde
<LINK href="theme/footer.css" rel="stylesheet" type="text/css">
<TITLE>Fortis Crawler Admin</TITLE>
</HEAD>
<BODY id="body">
<jsp:include page="incl/header.jsp"/>
<jsp:include page="incl/menu_top.jsp"/>
<jsp:include page="incl/menu_left_index
[...]
Thank u.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.