home *** CD-ROM | disk | FTP | other *** search
/ Online Praxis 1998 March / Image.iso / CD-ROM / NETSCAPE / CCK / INSTBLDR.Z / asw.jar / later.js < prev    next >
Encoding:
Text File  |  1998-02-27  |  1.1 KB  |  66 lines

  1. <!--  to hide script contents from old browsers
  2.  
  3.  
  4.  
  5. function go(msg)
  6. {
  7.     return(checkData());
  8. }
  9.  
  10.  
  11.  
  12. function checkData()
  13. {
  14.     // check browser version
  15.     var theAgent=navigator.userAgent;
  16.     var x=theAgent.indexOf("/");
  17.     if (x>=0)    {
  18.         theVersion=theAgent.substring(x+1,theAgent.length);
  19.         x=theVersion.indexOf(".");
  20.         if (x>0)    {
  21.             theVersion=theVersion.substring(0,x);
  22.             }            
  23.         if (parseInt(theVersion)>=4)    {
  24.             if (theAgent.indexOf("4.0b2")>=0)    {
  25.                 // Navigator 4.0b2 specific features
  26.  
  27.                 toolbar=true;
  28.                 menubar=true;
  29.                 locationbar=true;
  30.                 directory=true;
  31.                 statusbar=true;
  32.                 scrollbars=true;
  33.                 }
  34.             else    {
  35.                 // Navigator 4.0b3 and later features
  36.  
  37.                 toolbar.visible=true;
  38.                 menubar.visible=true;
  39.                 locationbar.visible=true;
  40.                 personalbar.visible=true;                // was directory
  41.                 statusbar.visible=true;
  42.                 scrollbars.visible=true;
  43.                 }
  44.             }
  45.         }
  46.  
  47.     return(true);
  48. }
  49.  
  50.  
  51.  
  52. function loadData()
  53. {
  54.     if (parent.controls.generateControls)    parent.controls.generateControls();
  55. }
  56.  
  57.  
  58.  
  59. function saveData()
  60. {
  61. }
  62.  
  63.  
  64.  
  65. // end hiding contents from old browsers  -->
  66.