home *** CD-ROM | disk | FTP | other *** search
/ DOKAN 21 / DOKAN21.iso / Extra / wmtools.exe / RCDATA / CABINET / parserns.txt < prev    next >
Text File  |  1998-07-07  |  1KB  |  38 lines

  1. <SCRIPT LANGUAGE="JAVAScript">
  2. if (navigator.appName.indexOf("Microsoft Internet Explorer") !=0) 
  3.     {
  4. //    alert ("Don't forget to uncomment the applet tag on the html page otherwise you will get a 'document.appObs has no properties.' error");
  5.     var pluginJavaPeerRef = document.Player1;
  6.     document.appObs.setByProxySelectedEvents(pluginJavaPeerRef, 1048575);
  7.     navigator.plugins.refresh();
  8.     }
  9.  
  10.  
  11. //var pluginJavaPeerRef = document.Player1;
  12. // Set up all events to be triggered 
  13.  
  14. //    document.appObs.setByProxyDSScriptCommandObserver(pluginJavaPeerRef, true);
  15. //    document.appObs.setByProxyDSMarkerHitObserver(pluginJavaPeerRef, true);
  16.  
  17. // Set up the Script command event parser ..
  18.  
  19. function OnDSScriptCommandEvt(type, param)
  20. {
  21.  
  22.   var event = type.toUpperCase();
  23.  
  24.   if ( event == "CAPTION" ) { change(param);}
  25.   if ( event == "URL" ) {  
  26.     if (!document.Player1.GetInvokeURLs() ) {
  27.         Launch_Url( param);  }
  28.             }
  29.   if ( event == "FILENAME" ) {  
  30.     if (!document.Player1.GetInvokeURLs() ) {
  31.         Launch_Url( param); } 
  32.             }
  33.  
  34. }
  35.  
  36. </SCRIPT>
  37.  
  38.