home *** CD-ROM | disk | FTP | other *** search
/ ftp.rsa.com / 2014.05.ftp.rsa.com.tar / ftp.rsa.com / pub / agents / RSASecurIDTokenAuto412x64.msi / Data1.cab / _A3853D17946A4000EE4B57D814014D27 < prev    next >
Text File  |  2014-03-12  |  6KB  |  229 lines

  1. <html>
  2. <head>
  3. <title>Select a Topic                                                                                   </title>
  4. <script language="javascript" src="whver.js"></script>
  5. <script language="javascript1.2" src="whutils.js"></script>
  6. <script language="javascript">
  7. <!--
  8. var gsBgColor = "#c0c0c0";
  9. var gsBgImage = "";
  10. var gsListBgColor = "white";
  11. var gsListBgImage = "";
  12. var gsMargin="0pt";
  13. var gsIndent="0pt";
  14. var gSelectedItem = -1;
  15.  
  16.  
  17. var goFont=null;
  18. var goHoverFont=null;
  19. var goTableFont=null;
  20. var gsABgColor="#cccccc";
  21.  
  22. function setListBackground(sBgImage)
  23. {
  24.     if (sBgImage != null && sBgImage.length > 0)
  25.         gsListBgImage = sBgImage;
  26. }
  27.  
  28. function setListBackgroundcolor(sBgColor)
  29. {
  30.     if (sBgColor != null && sBgColor.length > 0)
  31.         gsListBgColor = sBgColor;
  32. }
  33.  
  34. function setBackground(sBgImage)
  35. {
  36.     if (sBgImage != null && sBgImage.length > 0)
  37.         gsBgImage = sBgImage;
  38. }
  39.  
  40. function setBackgroundcolor(sBgColor)
  41. {
  42.     if (sBgColor != null && sBgColor.length > 0)
  43.         gsBgColor = sBgColor;
  44. }
  45.  
  46. function setActiveBgColor(sBgColor)
  47. {
  48.     gsABgColor=sBgColor;
  49. }
  50.  
  51. function setFont(sType, sFontName,sFontSize,sFontColor,sFontStyle,sFontWeight,sFontDecoration)
  52. {
  53.     var vFont=new whFont(sFontName,sFontSize,sFontColor,sFontStyle,sFontWeight,sFontDecoration);
  54.     if (sType == "Normal")
  55.         goFont=vFont;
  56.     if (sType == "Hover")
  57.         goHoverFont=vFont;
  58.     else if (sType == "Table")
  59.         goTableFont=vFont;
  60. }
  61.  
  62. function fnOnload()
  63. {
  64.     if( window.dialogArguments != null )
  65.         fnLoadOptions( window.dialogArguments );
  66.     var items = getElementsByTag(document, "a");
  67.     if (items.length > 0)
  68.         items[0].focus();
  69. }
  70.  
  71. var gaOpts = new Array();
  72.  
  73. function selectOption(index)
  74. {
  75.     gSelectedItem = index;
  76. }
  77.  
  78. function displayOption(index)
  79. {
  80.     if (index < gaOpts.length)
  81.     {
  82.         returnValue = new Object();
  83.         returnValue.m_url = gaOpts[index];
  84.     }
  85.     else
  86.         returnValue = null;
  87.  
  88.     window.close();
  89. }
  90.  
  91. function fnLoadOptions( cList )
  92. {
  93.     var sHTML = "<dl>";
  94.     for( var i=0;i <cList.length; i++)
  95.     {
  96.         sHTML += "<dt><nobr><a href=\"javascript:void(0);\" onclick=\"return false;\" onfocus=\"selectOption(";
  97.         sHTML += gaOpts.length + ");return false;\" ondblclick=\"displayOption(" + gaOpts.length;
  98.         sHTML += ");return false;\">"+ _textToHtml(cList[i].m_sName) + "</a></nobr></dt>";
  99.         gaOpts[gaOpts.length] = cList[i].m_sURL;
  100.     }
  101.     sHTML += "</dl>";
  102.     var oDivCon=getElement("divlist");
  103.     if(oDivCon)
  104.         oDivCon.innerHTML=sHTML;
  105.     return true;
  106. }
  107.  
  108. function fnOK()
  109. {
  110.     displayOption(gSelectedItem);
  111. }
  112.  
  113. function fnCancel()
  114. {
  115.     returnValue = null;        window.close();
  116. }
  117.  
  118. function fnOnKeypress()
  119. {
  120.     switch( event.keyCode )
  121.     {
  122.     case 13:    // enter key
  123.         fnOK();
  124.         break;
  125.     case 27:    // escape key
  126.         fnCancel();
  127.         break;
  128.     }
  129. }
  130.  
  131. function writeStyle(bMiniBar)
  132. {
  133.     var sStyle="";
  134.     sStyle+="<style type='text/css'>\n";
  135.     sStyle+="<!--\n";
  136.     sStyle+="body.clsbody\n";
  137.     sStyle+="{\n";
  138.      sStyle+="margin: 4px;\n";
  139.      sStyle+=getFontStyle(goTableFont);
  140.      sStyle+="background-attachment: fixed;\n";
  141.     sStyle+="};\n";
  142.     sStyle+="P.clsNDXTD\n";
  143.     sStyle+="{\n";
  144.      sStyle+="margin:0;\n";
  145.      sStyle+=getFontStyle(goTableFont);
  146.     sStyle+="};\n";
  147.     sStyle+="div.clslist\n";
  148.     sStyle+="{\n";
  149.     if (gsListBgImage)
  150.          sStyle+="background-image:url("+gsListBgImage+");\n";
  151.     else if (gsListBgColor)
  152.          sStyle+="background-color:"+gsListBgColor+";\n";
  153.      sStyle+=getFontStyle(goFont);
  154.     sStyle+="};\n";
  155.     sStyle+="BUTTON.clsNDXButton\n";
  156.     sStyle+="{\n";
  157.      sStyle+=getFontStyle(goTableFont);
  158.      sStyle+="background-color: transparent;\n";
  159.     sStyle+="};\n";
  160.     sStyle+="dl {"+getFontStyle(goFont)+"margin-left:"+gsIndent+";margin-top:"+gsMargin+";}\n";
  161.     sStyle+="A:link {"+getFontStyle(goFont)+"}\n";
  162.     sStyle+="A:visited {"+getFontStyle(goFont)+"}\n";
  163.     sStyle+="A:active {background-color:"+gsABgColor+";}\n";
  164.     sStyle+="A:hover {"+getFontStyle(goHoverFont)+"}\n";
  165.     sStyle+="</style>\n";
  166.     document.write(sStyle);
  167. }
  168.  
  169. function window_OnLoad()
  170. {
  171.     if(document.body)
  172.     {
  173.         if(gsBgImage&&gsBgImage.length>0)
  174.         {
  175.             document.body.background=gsBgImage;
  176.         }
  177.         if(gsBgColor&&gsBgColor.length>0)
  178.         {
  179.             document.body.bgColor=gsBgColor;
  180.         }
  181.     }
  182.     fnOnload();
  183.     window_onResize();
  184. }
  185.  
  186. function window_onResize()
  187. {
  188.     var oDiv = getElement("divlist");
  189.     var oTitle = getElement("p_title");
  190.     var oButton = getElement("tb_button");
  191.     if (oDiv && oTitle && oButton)
  192.     {
  193.         oDiv.style.height = document.body.offsetHeight - oTitle.offsetHeight - oButton.offsetHeight - 8;
  194.     }
  195. }
  196. goTableFont=new whFont("Verdana","8pt","#000000","normal","normal","none");
  197. goFont=new whFont("Verdana","8pt","#000000","normal","normal","none");
  198. goHoverFont=new whFont("Verdana","8pt","#666666","normal","normal","none");
  199.  
  200.  
  201. setBackgroundcolor("Navy");
  202. setBackground("bkg.gif");
  203. setFont("Table", "Verdana","8pt","White","Normal","Normal","none");
  204. setListBackgroundcolor("Navy");
  205. setListBackground("bkg.gif");
  206. setFont("Normal", "Verdana","8pt","Navy","Normal","Normal","none");
  207. setFont("Hover", "Verdana","8pt","Navy","Normal","Normal","underline");
  208. setActiveBgColor("Silver");
  209.  
  210. window.onload=window_OnLoad;
  211. window.onresize = window_onResize;
  212. writeStyle();
  213. //-->
  214. </script>
  215. </head>
  216.  
  217. <body class="clsbody" scroll="no" onkeypress="fnOnKeypress()">
  218. <p id="p_title" class="clsNDXTD"><nobr>Select a topic, then click Display</nobr></p>
  219. <div id="divlist" class="clslist" style="margin:2px;position: relative;overflow:auto;width:100%;border-style:inset;border-width:2">
  220. </div>
  221. <table id="tb_button" width="100%">
  222.   <tr>
  223.     <td width="100%" align="center"><button class="clsNDXButton" name="btnOK" onclick="fnOK()">Display</button> <button class="clsNDXButton" name="btnCancel" onclick="fnCancel()">Cancel</button></td>
  224.   </tr>
  225. </table>
  226.  
  227. </body>
  228.  
  229. </html>