head.js 5.31 KB
//获取当前网址,如: http://localhost:8083/myproj/view/my.jsp
var curWwwPath = window.document.location.href;
//获取主机地址之后的目录,如: myproj/view/my.jsp
var pathName = window.document.location.pathname;
var pos = curWwwPath.indexOf(pathName);
//获取主机地址,如: http://localhost:8083
var localhostPaht = curWwwPath.substring(0, pos);
document.writeln("<!DOCTYPE html>");
document.writeln("<html lang=\'en\'>");
document.writeln("");
document.writeln("<head>");
document.writeln("    <meta charset=\'UTF-8\'>");
document.writeln("    <title>网上“一窗办事”登记系统</title>");
document.writeln("    <meta name=\'copyright\' content=\' &reg 技术支持 All Rights Reserved\' />");
document.writeln("    <meta name=\'robots\' content=\'index,follow\' />");
document.writeln("    <meta name=\'googlebot\' content=\'index,follow,archive\' />");
document.writeln("    <link rel=\'alternate icon\' type=\'image/png\' href=\'"+localhostPaht+"/staticImages/logo-realestate.png\'>");
document.writeln("    <link rel=\'icon\' href=\'favicon.ico\' type=\'image/x-ico\' />");
document.writeln("    <meta name=\'description\' content=\'\' />");
document.writeln("    <meta name=\'Keywords\' content=\'\' />");
document.writeln("    <link rel=\'stylesheet\' type=\'text/css\' href=\'"+localhostPaht+"/staticLib/layui/css/layui.css\' />");
document.writeln("    <link type=\'text/css\' rel=\'stylesheet\' href=\'"+localhostPaht+"/staticCss/common.css\' />");
document.writeln("    <link type=\'text/css\' rel=\'stylesheet\' href=\'"+localhostPaht+"/staticCss/global.css\' />");
document.writeln("</head>");
document.writeln("");
document.writeln("<body>");
document.writeln("    <div class=\'top-logo\'>");
document.writeln("        <div class=\'top_logo_content\'>");
document.writeln("            <h1><a href=\'"+localhostPaht+"/index.html\'><img src=\'"+localhostPaht+"/staticImages/logo.jpg\' alt=\'西安市不动产登记平台\' /></a></h1>");
document.writeln("");
document.writeln("            <div class=\'top_logo_search\'>");
document.writeln("                <input type=\'text\' name=\'title\' required lay-verify=\'required\' placeholder=\'请输入关键字搜索\' autocomplete=\'off\'");
document.writeln("                    class=\'layui-input\'>");
document.writeln("                <i class=\'layui-icon layui-icon-search\' style=\'font-size: 14px;\'></i>");
document.writeln("            </div>");
document.writeln("");
document.writeln("            <ul class=\'login\'>");
document.writeln("                <!-- <li>登录</li> -->");
document.writeln("                <li>");
document.writeln("                    <a href=\'"+localhostPaht+"/staticViews/grzx/index.html\'>登录</a>");
document.writeln("                </li>");
document.writeln("                <li>注册</li>");
document.writeln("            </ul>");
document.writeln("        </div>");
document.writeln("    </div>");
document.writeln("    <div class=\'navigation\'>");
document.writeln("        <ul class=\'layui-nav layui-bg-blue\' lay-filter=\'\'>");
document.writeln("            <li class=\'layui-nav-item layui-this\'><a href=\'"+localhostPaht+"/index.html\' title=\'首页\'>首页</a></li>");
document.writeln("            <li class=\'layui-nav-item\'><a href=\'"+localhostPaht+"/staticViews/xwdt/index.html\' title=\'新闻动态\'>新闻动态</a></li>        ");
document.writeln("            <li class=\'layui-nav-item\'><a href=\'\'>政策法规</a></li>");
document.writeln("            <li class=\'layui-nav-item\'><a href=\'"+localhostPaht+"/staticViews/bszn/index.html\'>办事指南</a></li>");
document.writeln("            <li class=\'layui-nav-item\'><a href=\'\'>业务办理</a></li>");
document.writeln("            <li class=\'layui-nav-item\'>");
document.writeln("                <a href=\'javascript:;\'>查验中心</a>");
document.writeln("                <dl class=\'layui-nav-child\'>");
document.writeln("                    <!-- 二级菜单 -->");
document.writeln("                    <dd><a href=\'\'>移动模块</a></dd>");
document.writeln("                    <dd><a href=\'\'>后台模版</a></dd>");
document.writeln("                    <dd><a href=\'\'>电商平台</a></dd>");
document.writeln("                </dl>");
document.writeln("            </li>");
document.writeln("            <li class=\'layui-nav-item\'><a href=\'"+localhostPaht+"/staticViews/zxjf/index.html\'>在线缴费</a></li>");
document.writeln("            <li class=\'layui-nav-item\' class=\'item_last_child\'><a href=\'\'>好差评</a></li>");
document.writeln("        </ul>");
document.writeln("    </div> ");
document.writeln("</body>");
document.writeln("");
document.writeln("</html>");
// document.writeln("<script src=\'./staticLib/jquery/jquery.min.js\'></script>");
// document.writeln("<script src=\'./staticLib/layui/layui.js\'></script>");
// document.writeln("<script src=\'./staticJs/staticIndex.js\'></script>");

document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticLib/jquery/jquery.min.js\'></script>");
document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticLib/layui/layui.js\'></script>");
document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/staticIndex.js\'></script>");
document.writeln("<script src=\'https://at.alicdn.com/t/font_2174584_uxkon9mpq1.js\'></script>");