home *** CD-ROM | disk | FTP | other *** search
/ ftp.rsa.com / 2014.05.ftp.rsa.com.tar / ftp.rsa.com / pub / agents / RSASecurIDTokenAuto411.msi / Data1.cab / _A8F3DAE637BA4D7CE474B7AFE6D11154 < prev    next >
Text File  |  2011-12-07  |  5KB  |  172 lines

  1. 
  2. <html>
  3. <head>
  4. </head>
  5. <script type="text/javascript" language="javascript" src="whver.js"></script>
  6. <script type="text/javascript" language="javascript" src="whutils.js"></script>
  7. <script type="text/javascript" language="javascript" src="whmsg.js"></script>
  8. <script type="text/javascript" language="javascript" >
  9. <!--
  10. if (!window.gbWhVer||!window.gbWhUtil||!window.gbWhMsg)
  11.     document.location.reload();
  12. //-->
  13. </script>
  14.  
  15. <script type="text/javascript" language="javascript" src="whproxy.js"></script>
  16. <script type="text/javascript" language="javascript">
  17. <!--
  18. if (!window.gbWhProxy)
  19.     document.location.reload();
  20. //-->
  21. </script>
  22.  
  23.  
  24. <script language="javascript">
  25. <!--
  26. var gsPane="";
  27. var gnType=3;
  28.  
  29. var oMsgPane = new whMessage(WH_MSG_GETPANETYPE, this, 1, null);
  30. if (SendMessage(oMsgPane))
  31. {
  32.     gsPane = oMsgPane.oParam.sPaneURL;
  33.     gnType = oMsgPane.oParam.nType;
  34. }
  35.  
  36.     var strDefaultTopic = "about:blank";
  37.     var oParam = new Object();
  38.     oParam.sTopic = "";
  39.     var oMsg = new whMessage(WH_MSG_GETDEFAULTTOPIC, this, 1, oParam);
  40.     if (SendMessage(oMsg) && oParam.sTopic != "")
  41.         strDefaultTopic =  oParam.sTopic;
  42. var strHTML = "";
  43. if (gnType == 4)
  44. {
  45.     //no navipane at all
  46.     strHTML += "<frameset border=\"0\" cols=\"100%,*\">";
  47.     strHTML += "<frame src=\"" + strDefaultTopic + "\" name=\"bsscright\" framespacing=\"0\" frameborder=\"0\" border=\"0\" scrolling=\"auto\">";
  48.     strHTML += "<frame src=\"whskin_blank.htm\" noresize>";
  49.     strHTML += "</frameset>";
  50. }
  51. else
  52.     strHTML += "<frameset cols=\"220,*\" hostof=\"parent:minibar_navpane|topic!startpage:no\" frameborder=\"1\" id=\"whPfset\"><frame src=\"whskin_frmset010.htm\" id=\"minibar_navpane\" frameborder=\"0\" border=\"0\" scrolling=\"auto\" marginheight=\"0\" marginwidth=\"0\"></frame><frame src=\""+strDefaultTopic+"\" id=\"topic\" frameborder=\"1\" border=\"1\" scrolling=\"auto\" title=\"Topic\" name=\"bsscright\"></frame></frameset>";
  53. document.write(strHTML);
  54. // handle show pane, hide pane and query pane status message.
  55. RegisterListener2(this, WH_MSG_RESIZEPANE);
  56. RegisterListener2(this, WH_MSG_SHOWPANE);
  57. RegisterListener2(this, WH_MSG_HIDEPANE);
  58. RegisterListener2(this, WH_MSG_ISPANEVISIBLE);
  59.  
  60. function window_unload()
  61. {
  62.     UnRegisterListener2(this, WH_MSG_RESIZEPANE);
  63.     UnRegisterListener2(this, WH_MSG_SHOWPANE);
  64.     UnRegisterListener2(this, WH_MSG_HIDEPANE);
  65.     UnRegisterListener2(this, WH_MSG_ISPANEVISIBLE);
  66. }
  67.  
  68. window.onunload=window_unload;
  69.  
  70. var gbShow=false;
  71. var gstrFrameLastSetting="";
  72. function onSendMessage(oMsg)
  73. {
  74.     var oMsgout = null;
  75.     var nMsgId = oMsg.nMessageId;
  76.     var oFrameset = null;
  77.     if (nMsgId == WH_MSG_SHOWPANE)
  78.     {
  79.         if (!gbShow)
  80.         {
  81.             oFrameset = getElement("whPfset");
  82.             if (oFrameset)
  83.             {
  84.                 if (gstrFrameLastSetting)
  85.                     oFrameset.cols= gstrFrameLastSetting;
  86.                 else
  87.                      oFrameset.cols= "220,*";
  88.             }
  89.             gbShow=true;
  90.             oMsgout = new whMessage(WH_MSG_PANESTATUE, this, 1, "visible");
  91.             SendMessage(oMsgout);
  92.         }
  93.         return false;
  94.     }
  95.     else if (nMsgId == WH_MSG_HIDEPANE)
  96.     {
  97.         oFrameset = getElement("whPfset");
  98.         if (oFrameset)
  99.         {
  100.             gstrFrameLastSetting=oFrameset.cols; 
  101.             var oWnd=frames[0];
  102.             if (oWnd && oWnd.document && oWnd.document.body)
  103.             {
  104.                 var nPos=0;
  105.                 if ("cols"=="cols")
  106.                     nPos=oWnd.document.body.offsetWidth;
  107.                 else
  108.                     nPos=oWnd.document.body.offsetHeight;
  109.                 if(0==0)
  110.                     gstrFrameLastSetting=nPos+",*";
  111.                 else
  112.                     gstrFrameLastSetting="*,"+nPos;
  113.             }
  114.              oFrameset.cols = "0,*";
  115.         }
  116.         gbShow=false;
  117.         oMsgout = new whMessage(WH_MSG_PANESTATUE, this, 1, "invisible");
  118.         SendMessage(oMsgout);
  119.         return false;
  120.     }
  121.     else if (nMsgId == WH_MSG_RESIZEPANE)
  122.     {
  123.         if (!gbShow)
  124.         {
  125.             gbShow=true;
  126.             oMsgout = new whMessage(WH_MSG_PANESTATUE, this, 1, "visible");
  127.             SendMessage(oMsgout);
  128.         }
  129.         return false;
  130.     }
  131.     else if (nMsgId == WH_MSG_ISPANEVISIBLE)
  132.     {
  133.         oMsg.oParam.bVisible = isNavPaneVisible();
  134.         return false;
  135.     }
  136.     return true;
  137. }
  138.  
  139. function isNavPaneVisible()
  140. {
  141.     var bVisible = false;
  142.     var sSplit = getElement("whPfset").cols;
  143.     var nSplit = sSplit.indexOf(",");
  144.     if (nSplit != -1)
  145.     {
  146.         var sPart1 = sSplit.substring(0, nSplit);
  147.         var sPart2 = sSplit.substring(nSplit + 1);
  148.         if ("minibar_navpane" == "navpane")
  149.         {
  150.             var sTemp = sPart1;
  151.             sPart1 = sPart2;
  152.             sPart2 = sTemp;
  153.         }
  154.  
  155.         if (sPart2 != "*")
  156.         {
  157.             var n = parseInt(sPart2);
  158.             if (n>0)
  159.                 bVisible = true;
  160.         }
  161.         else
  162.         {
  163.             if (sPart1 != "100%")
  164.                 bVisible = true;
  165.         }
  166.     }
  167.     return bVisible;
  168. }
  169. //-->
  170. </script>
  171.  
  172. </html>