zoukankan      html  css  js  c++  java
  • 网页跳转

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>AAAAAAAAAA</title>
     <%
     dim InstId
     InstId = Request.QueryString("instId")
      %>
       
    </head>
    <body>

    <script type="text/javascript">
        window.onload = init;
        function init() {
            var instId = "<%=InstId%>";
            var currentDomain = document.domain;
            var dom = createXmlDomFromFile("pwd.xml");//自定义的方法
            var path = "Root/List[InstId=" + "'" + instId + "']";
            var userName = "";
            var pwd = "";
            if (GetNodeValue(dom, path + "/InstId")) {
                if (GetNodeValue(dom, path + "/InstId") != "") {
                    userName = GetNodeValue(dom, path + "/UserName");
                    pwd = GetNodeValue(dom, path + "/PassWord");
                    var url = "https://" + currentDomain + "/login.asp?instid=" + instId + "&login=" + userName + "&pwd=" + pwd;
                    window.navigate(url);
                } else {
                    alert("your instid is not belongs to ");
                }
            } else {
            alert("your instid is not belongs to ");
            }
        }
       
        </script>
    </body>
    </html>

    pwd.xml

    <?xml version="1.0" encoding="utf-8" ?>
    <Root>
      <List>
        <InstId>AAA</InstId>
        <UserName>123</UserName>
        <PassWord>123</PassWord>
      </List>
      <List>
        <InstId>BBB</InstId>
        <UserName>123</UserName>
        <PassWord>123</PassWord>
      </List>
    </Root>

  • 相关阅读:
    E. 因数串
    三点共圆公式
    B-Suffix Array
    线段树求解连续区间问题
    E. Quantifier Question (拓扑排序求前驱和后继)
    CF1344B Monopole Magnets
    Multiset (权值线段树模版)
    459. 重复的子字符串 next数组
    6.21笔试小结
    canva学习笔记
  • 原文地址:https://www.cnblogs.com/bingzisky/p/1750543.html
Copyright © 2011-2022 走看看