home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 October / PCWorld_2002-10_cd.bin / Software / TemaCD / wmp9xpbeta / mpsetupXP.exe / wmploc.DLL / 256 / FLYOUT.JS < prev    next >
Encoding:
JavaScript  |  2002-08-19  |  1.1 KB  |  49 lines

  1. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  2. //
  3. //
  4. // vwPlayer
  5. //
  6. //
  7. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  8.  
  9.  
  10. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  11. //
  12. // vwPlayer_SelectVideoOrVis
  13. //
  14. function vwPlayer_SelectVideoOrVis( fForce )
  15. {
  16.     if ( ( player.openState == 13 ) || ( fForce ) )
  17.     {
  18.         if ((player.currentMedia.imageSourceWidth > 0) && (player.currentMedia.imageSourceHeight > 0))
  19.         {
  20.             svwVis.visible = false;
  21.             svwVideo.visible = true;
  22.         }
  23.         else
  24.         {
  25.             svwVis.visible = true;
  26.             svwVideo.visible = false;
  27.         }
  28.     }
  29. }
  30.  
  31.  
  32. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  33. //
  34. // vwPlayer_OnLoad
  35. //
  36. function vwPlayer_OnLoad()
  37. {
  38.     vwPlayer_SelectVideoOrVis( true );
  39. }
  40.  
  41.  
  42. //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  43. //
  44. // vwPlayer_OnOpenStateChange
  45. //
  46. function vwPlayer_OnOpenStateChange(NewState)
  47. {
  48.     vwPlayer_SelectVideoOrVis( false );
  49. }