head.js
5.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//获取当前网址,如: 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=\' ® 技术支持 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 src=\'https://at.alicdn.com/t/font_2174584_uxkon9mpq1.js\'></script>");