home *** CD-ROM | disk | FTP | other *** search
/ Your Business Pak / BusinessPak2.iso / Netscape / CD / as.z / asw.jar / aboutbox.js < prev    next >
Text File  |  1998-10-15  |  2KB  |  114 lines

  1. /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. <!--  to hide script contents from old browsers
  19.  
  20. function go( msg )
  21. {
  22.     if ( msg=="Back" )
  23.         return true;
  24.     return false;
  25. }
  26.  
  27.  
  28.  
  29. function checkData()
  30. {
  31.     return true;
  32. }
  33.  
  34. function loadData()
  35. {
  36.     if ( parent && parent.controls && parent.controls.generateControls )
  37.     {
  38.         parent.controls.generateControls();
  39.     }
  40.     document.layers[ "programName" ].visibility = "SHOW";
  41.     animate1();
  42. }
  43.  
  44. function saveData()
  45. {
  46. }
  47.  
  48. function animate1()
  49. {
  50.     if ( document.layers[ "programName" ].left < 100 )
  51.     {
  52.         document.layers[ "programName" ].moveBy( 10, 0 );
  53.         setTimeout( "animate1()", 100 );
  54.     }
  55.     else
  56.     {
  57.         document.layers[ "programDesc" ].visibility = "SHOW";
  58.         animate2();
  59.     }
  60. }
  61.  
  62.  
  63.  
  64. function animate2()
  65. {
  66.     if ( document.layers[ "programDesc" ].top < 0 )
  67.     {
  68.         document.layers[ "programDesc" ].moveBy( 0, 10 );
  69.         setTimeout( "animate2()", 100 );
  70.     }
  71.     else
  72.     {
  73.         document.layers[ "programCopyRight" ].visibility = "SHOW";
  74.         animate3();
  75.     }
  76. }
  77.  
  78.  
  79.  
  80. function animate3()
  81. {
  82.     if ( document.layers[ "programCopyRight" ].left > 380 )
  83.     {
  84.         document.layers[ "programCopyRight" ].moveBy( -10, 0);
  85.         setTimeout( "animate3()", 100 );
  86.     }
  87.     else
  88.     {
  89.         document.layers[ "NetscapeIcon" ].visibility = "SHOW";
  90.         document.layers[ "ProgramThanks" ].visibility = "SHOW";
  91.         animate4();
  92.     }
  93. }
  94.  
  95.  
  96.  
  97. function animate4()
  98. {
  99.     if ( document.layers[ "ProgramThanks" ].top > 50 )
  100.     {
  101.         document.layers[ "NetscapeIcon" ].moveBy( 0, 5 );
  102.         document.layers[ "ProgramThanks" ].moveBy( 0, -10 );
  103.         setTimeout( "animate4()", 100 );
  104.     }
  105.     else
  106.     {
  107.         document.layers[ "NetscapeIcon" ].document.layers[ "NetscapeString" ].visibility = "SHOW";
  108.     }
  109. }
  110.  
  111.  
  112.  
  113. // end hiding contents from old browsers  -->
  114.