home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 February / PCWorld_2001-02_cd.bin / Software / Topware / winmedpl / mpbonus_full.exe / wmpskin.cab / DigitalDJ.wmz / auto.js next >
Encoding:
JavaScript  |  2000-07-13  |  967 b   |  40 lines

  1. //<script>
  2. //****************************************************************
  3. //  ⌐2000 Microsoft Corporation. All rights reserved.
  4. //****************************************************************
  5.  
  6.  
  7. function AutoLoad()
  8. {
  9.     // In preview mode (the skin chooser), we want to go ahead
  10.     // and show the preview bitmap... so the following line will
  11.     // "fault" out the preview jscript engine, but not the runtime
  12.     // engine...
  13.     
  14.     if (player)
  15.     {
  16.     }
  17.     
  18.     view.width              = 0;
  19.     view.height             = 0;
  20.     view.backgroundImage    = "";
  21.  
  22.     var viewID  = theme.loadPreference( 'LV' );
  23.     
  24.     if (viewID == '--')
  25.     {
  26.         if (player.playState == 3)  // psPlaying
  27.         {
  28.             viewID = 'DigitalDJMid';
  29.         }
  30.         else
  31.         {
  32.             viewID = 'DigitalDJ';
  33.             theme.savePreference( 'LV', viewID );
  34.         }
  35.     }
  36.  
  37.     theme.currentViewID = viewID;    
  38. }
  39.  
  40.