Diff for /books/www/chapters/ch05.html between versions 1.14 and 1.15

version 1.14, 2002/12/14 14:12:15 version 1.15, 2002/12/14 14:18:25
Line 1278  retval=OK; Line 1278  retval=OK;
    <script>     <script>
      function play() {       function play() {
        netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");         netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
        var url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance();  
        url = url.QueryInterface(Components.interfaces.nsIURL);  
        url.spec = "resource:/res/samples/test.wav";  
        var sample = Components.classes["@mozilla.org/sound;1"].createInstance();         var sample = Components.classes["@mozilla.org/sound;1"].createInstance();
        sample = sample.QueryInterface(Components.interfaces.nsISound);         sample = sample.QueryInterface(Components.interfaces.nsISound);
        sample.playSystemSound('resource:/res/samples/test.wav');         sample.playSystemSound('resource:/res/samples/test.wav');
    }     }
    </script>     </script>
  </head>   </head>
  <body>   <body>

Removed from v.1.14  
changed lines
  Added in v.1.15


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>