home *** CD-ROM | disk | FTP | other *** search
/ Software Selections: IBM PC 300GL / TWCUSN017WW.iso / content / settings.js < prev    next >
Encoding:
Text File  |  1999-06-21  |  1.9 KB  |  90 lines

  1. function Body_OnLoad()
  2. {
  3.     SSWorld = GetControl("LeftPane", "SSWorld");
  4.  
  5.     if (SSWorld != null)
  6.     {
  7.         Language.value                = SSWorld.LocalCCName;
  8.         LanguageSection.style.display = SSWorld.MultilingualImage ? "" : "none";
  9.  
  10.         if (SSWorld.CDImageSupport)
  11.         {
  12.             SourcePath.value                = SSWorld.DataPath;    
  13.             SourcePathSection.style.display = "";
  14.         }
  15.  
  16.         if (SSWorld.FlyoverEnabled == true)
  17.             TooltipsOn.click();
  18.         else
  19.             TooltipsOff.click();
  20.  
  21.         TooltipsSection.style.display = "";
  22.  
  23.         CustomInstall.checked              = SSWorld.CustomInstallEnabled;
  24.         CustomInstallSection.style.display = "";
  25.     }
  26. }
  27.  
  28. function TooltipsOn_OnClick()
  29. {
  30.     SSWorld = GetControl("LeftPane", "SSWorld");
  31.  
  32.     if (SSWorld != null)
  33.     {
  34.         TooltipsOff.src = "..\\images\\radio1.gif";
  35.         TooltipsOn.src  = "..\\images\\radio2.gif";
  36.  
  37.         if (!SSWorld.FlyoverEnabled)
  38.             SSWorld.FlyoverEnabled = true;
  39.     }
  40. }
  41.  
  42. function TooltipsOff_OnClick()
  43. {
  44.     SSWorld = GetControl("LeftPane", "SSWorld");
  45.  
  46.     if (SSWorld != null)
  47.     {
  48.         TooltipsOn.src  = "..\\images\\radio1.gif";
  49.         TooltipsOff.src = "..\\images\\radio2.gif";
  50.  
  51.         if (SSWorld.FlyoverEnabled)
  52.             SSWorld.FlyoverEnabled = false;
  53.     }
  54. }
  55.  
  56. function CustomInstall_OnClick()
  57. {
  58.     SSWorld = GetControl("LeftPane", "SSWorld");
  59.  
  60.     if (SSWorld != null)
  61.         SSWorld.CustomInstallEnabled = CustomInstall.checked;
  62. }
  63.  
  64. function BrowseButton_Click()
  65. {
  66.     SSWorld = GetControl("LeftPane", "SSWorld");
  67.  
  68.     if (SSWorld != null)
  69.     {
  70.         SourcePath.value              = SSWorld.BrowseForExistingImage();
  71.         LanguageSection.style.display = SSWorld.MultilingualImage ? "" : "none";
  72.  
  73.         if (Language.value != SSWorld.LocalCCName)
  74.             window.external.Reload();
  75.     }
  76. }
  77.  
  78. function ChangeButton_Click()
  79. {
  80.     SSWorld = GetControl("LeftPane", "SSWorld");
  81.  
  82.     if (SSWorld != null)
  83.         if (Language.value != SSWorld.BrowseForLanguage())
  84.             window.external.Reload();
  85. }
  86.  
  87. function ExitButton_Click()
  88. {
  89.     Exit();
  90. }