down.js 4.54 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("");
document.writeln("<body>    ");
document.writeln("    <div class=\'footer\'>        ");
document.writeln("        <div class=\'system_service\'>");
document.writeln("            <ul class=\'\'>");
document.writeln("                <li>");
document.writeln("                    <a href=\'"+localhostPaht+"/staticViews/gsgg.html\' title=\'公示公告\'>");
document.writeln("                        <span>公示公告</span>");
document.writeln("                    </a>");
document.writeln("                </li>");
document.writeln("                <li>");
document.writeln("                    <a href=\'"+localhostPaht+"/staticViews/flfg.html\' title=\'法律法规\'>");
document.writeln("                        <span>法律法规</span>");
document.writeln("                    </a>");
document.writeln("                </li>");
document.writeln("                <li>");
document.writeln("                    <a href=\'"+localhostPaht+"/staticViews/xyzc.html\' title=\'相应政策\'>");
document.writeln("                        <span>相应政策</span>");
document.writeln("                    </a>");
document.writeln("                </li>");
document.writeln("                <li>");
document.writeln("                    <a href=\'\' title=\'下载服务\'>");
document.writeln("                        <span>下载服务</span>");
document.writeln("                    </a>");
document.writeln("                </li>");
document.writeln("                <li>");
document.writeln("                    <a href=\'\' title=\'关于我们\'>");
document.writeln("                        <span>关于我们</span>");
document.writeln("                    </a>");
document.writeln("                </li>");
document.writeln("            </ul>");
document.writeln("        </div>    ");
document.writeln("        <div class=\'subject\'>");
document.writeln("            <div class=\'footer_logo\'>");
document.writeln("                <a href=\'\' title=\'党政机关\'>");
document.writeln("                    <img src=\'"+localhostPaht+"/staticImages/jiguan.png\' alt=\'党政机关\' />");
document.writeln("                </a>");
document.writeln("            </div>");
document.writeln("            <ul>");
document.writeln("                <li>");
document.writeln("                    西安市自然资源和规划局");
document.writeln("                </li>");
document.writeln("                <li>");
document.writeln("                    电话:028-456465");
document.writeln("                </li>");
document.writeln("                <li>");
document.writeln("                    地址:西安市丰城8路");
document.writeln("                </li>");
document.writeln("                <li>");
document.writeln("                    网站标识吗:87987987");
document.writeln("                </li>");
document.writeln("                <li>");
document.writeln("                    备案:陕IPC456465465");
document.writeln("                </li>");
document.writeln("                <li>");
document.writeln("                    陕公网备案:456465465");
document.writeln("                </li>");
document.writeln("            </ul>");
document.writeln("            <ol>");
document.writeln("                <li>");
document.writeln("                    <img src=\'"+localhostPaht+"/staticImages/code.png\' alt=\'公众号\' />");
document.writeln("                    <p>扫描关注公众号</p>");
document.writeln("                </li>");
document.writeln("                <li>");
document.writeln("                    <img src=\'"+localhostPaht+"/staticImages/code.png\' alt=\'公众号\' />");
document.writeln("                    <p>扫描关注公众号</p>");
document.writeln("                </li>");
document.writeln("");
document.writeln("            </ol>");
document.writeln("        </div>");
document.writeln("    </div>");
document.writeln("");
document.writeln("</body>");
document.writeln("");
document.writeln("</html>");
document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticLib/layui/layui.js\'></script>");
document.writeln("");