<!-- Request.asp -->
<%
'Request Value
strA = Request("A")
strB = Request("B")
%>
<HTML>
<HEAD>
<TITLE>流程</TITLE>
<META Http-Equiv="Content-Type" Content="text/html; charset=gb2312">
<SCRIPT LANGUAGE="JavaScript">
<!--
function encrypt(strA,strB){
//加密
//...
//加密完成
var encryptA;  //=加密后的值;
var encryptB;  //=加密后的值;
submitEncrypt(encryptA,encryptB);
}
function submitEncrypt(A,B){
//...
//...
window.location.href = 'Other.asp?A='+A+'&B='+B;
}
//-->
</SCRIPT>
</HEAD><BODY onload = "encrypt('<%=strA%>','<%=strB%>')">
...
...
...
</BODY>
</HTML>

解决方案 »

  1.   

    加密的javascript如下:
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    //-->function  login(){
    setLanguageCookie();
    if(document.loginForm.emaillist.value!=""){
    setCookie("emailList",document.loginForm.emaillist.value);
    }
    else{
    setCookie("emailList","");
    }
    document.loginForm.userid.value=trim(document.loginForm.userid1.value)+document.loginForm.emaillist.value;
    document.loginForm.passwd.value=trim(document.loginForm.passwd.value);
    document.loginForm.password.value = calcMD5(document.loginForm.passwd.value);
    return ;}
    </script>