Link to home
Start Free TrialLog in
Avatar of matthew016
matthew016Flag for Belgium

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></li>
                        <li ><a href="Setup?do=menu_collections">Collections</a></li>
                        <li><a href="/indexes">Mode Test</a></li>
                        <li><a href="Setup?do=menu_options">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_index.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.
ASKER CERTIFIED SOLUTION
Avatar of alain34
alain34
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial