]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/scriptaculous/sound.js
Wordpress 2.5.1
[autoinstalls/wordpress.git] / wp-includes / js / scriptaculous / sound.js
index 164c79a088544093748da90fd865a2801cf41d66..9dd6e9f0162b7c53f4c43cf0e0ef1abeba493844 100644 (file)
@@ -1,4 +1,4 @@
-// script.aculo.us sound.js v1.7.1_beta3, Fri May 25 17:19:41 +0200 2007
+// script.aculo.us sound.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007
 
 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
 //
@@ -39,16 +39,11 @@ Sound = {
       this.tracks[options.track].id++;
       
     options.id = this.tracks[options.track].id;
-    if (Prototype.Browser.IE) {
-      var sound = document.createElement('bgsound');
-      sound.setAttribute('id','sound_'+options.track+'_'+options.id);
-      sound.setAttribute('src',options.url);
-      sound.setAttribute('loop','1');
-      sound.setAttribute('autostart','true');
-      $$('body')[0].appendChild(sound);
-    }  
-    else
-      new Insertion.Bottom($$('body')[0], Sound.template.evaluate(options));
+    $$('body')[0].insert( 
+      Prototype.Browser.IE ? new Element('bgsound',{
+        id: 'sound_'+options.track+'_'+options.id,
+        src: options.url, loop: 1, autostart: true
+      }) : Sound.template.evaluate(options));
   }
 };