home *** CD-ROM | disk | FTP | other *** search
/ Minami 79 / MINAMI79.iso / Extra / MPSetup.exe / 1033 / RCDATA / CABINET / wmploc.DLL / 256 / BANNER.JS < prev    next >
Text File  |  2002-12-14  |  1KB  |  50 lines

  1. // Windows Media Player - Copyright 2000 Microsoft Corporation.
  2. //<script>
  3.  
  4.  
  5. function ReloadBannerImage()
  6. {
  7.    if(osMediaOpen == player.OpenState && player.currentmedia.getItemInfo("BannerURL") != "")
  8.    {
  9.        AdBanner.image="WMPImage_AdBanner";
  10.    }
  11. }
  12.  
  13. function OnDownloadingMediaViz(bstrItemName)
  14. {
  15.     if (bstrItemName=="WMPImage_AdBanner")
  16.     {
  17.         AdBanner.image=bstrItemName;
  18.         var strToolTip = player.currentmedia.getItemInfo("BannerAbstract");
  19.         AdBanner.upToolTip = strToolTip;
  20.     }
  21. }
  22.  
  23. function OnBannerClick()
  24. {
  25.     if (!player.currentMedia) return;
  26.  
  27.     var strTargetURL = player.currentmedia.getItemInfo("BannerInfoURL");
  28.     if ( strTargetURL != "")
  29.     {
  30.         player.launchURL(strTargetURL);   
  31.     }
  32. }
  33.  
  34. function OnBannerMouseOver()
  35. {
  36.     if (!player.currentMedia) return;
  37.     
  38.     var strToolTip = player.currentmedia.getItemInfo("BannerAbstract");
  39.     AdBanner.upToolTip = strToolTip;
  40.  
  41.     if ( player.currentmedia.getItemInfo("BannerInfoURL") != "")
  42.     {
  43.         AdBanner.cursor = "hand";
  44.     }
  45.     else
  46.     {
  47.         AdBanner.cursor = "system";
  48.     }
  49. }
  50.