当前位置: 代码迷 >> JavaScript >> jquery的导航页面1(viewKBNaviPage.jsp)
  详细解决方案

jquery的导航页面1(viewKBNaviPage.jsp)

热度:857   发布时间:2012-10-30 16:13:35.0
jquery的导航页面一(viewKBNaviPage.jsp)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"
    import = "com.huawei.it.support.common.base.SupportConstants,
              com.huawei.pattern.xml.XMLParser"
%>
<%@ page import="com.huawei.it.portal.common.base.XmlConfig"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<html>
<head>
<title><bean:message key="support.homepage.catalog.navigate" /></title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="华为,华为技术,huawei,huawei technology">

<%
String nls_lang = (String)session.getAttribute(com.huawei.it.support.common.base.SupportConstants.CFG_NLS);
  if(null==nls_lang|| nls_lang.equals(""))
       nls_lang="zh";   
       String wwwPath="";
if(nls_lang.equals("zh")){
wwwPath= XmlConfig.config.getValue("www_path","zh");
}else{
wwwPath=XmlConfig.config.getValue("www_path","en");
}
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";   
%>
<!-- <LINK href="<%=wwwPath %>/css/vicss/public.css" rel="stylesheet" type="text/css"> -->
<link href="<%=request.getContextPath()%>/css/vicss/<%=(String)session.getAttribute(com.huawei.it.support.common.base.SupportConstants.CFG_NLS)%>/public.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/css/vicss/<%=(String)session.getAttribute(com.huawei.it.support.common.base.SupportConstants.CFG_NLS)%>/support_home.css" rel="stylesheet" type="text/css">
<LINK href="<%=request.getContextPath()%>/css/sup_navi.css" rel="stylesheet" type="text/css">
<LINK href="<%=request.getContextPath()%>/css/easyui.css" rel="stylesheet" type="text/css">
<LINK href="<%=request.getContextPath()%>/css/icon.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<%=request.getContextPath()%>/js/jquery-1.4.2.min.js"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/jquery.easyui.min.js"></script>
<script language="javascript">
$(function(){
var select_pline;
var initType = "<%=request.getAttribute("initType")%>";
if (initType == "navigateFromAssociation") {
select_pline = "<%=request.getParameter("proline_id")%>";
} else {
    select_pline = "<%=request.getParameter("select_pline")%>";
    }

var div = $("a[id='"+select_pline+"']").parent();
div.addClass("m_lv3_sel_red");

/**$("div[id=navigate_tree_div]").each(
function() {
$(this).hover(function(){
        $(this).addClass("navi_left_tree_over");
        }, function() {
            $(this).removeClass("navi_left_tree_over");
        });
}
);*/
}); 
function leftMenuTreeClick(node) {
$("div[id=navigate_tree_div]").each(
        function() {
        $(this).removeClass();
        $(this).addClass("m_lv3_unsel");
        });
var div = $(node).parent();
div.addClass("m_lv3_sel_red");
addNavigationItem(node);
}
</script>
</head>
  相关解决方案