English 中文(简体)
如何在联合材料音频标语中添加缺陷/退出方法
原标题:How to add a fade in/out method to the JS audio object

因此,我与新的音像制品相提并论,我用大麻添加物体的“fadeIn()”和“fadeOut()”方法,因此我很容易援引诸如:

music_bgm.fadeOut();

......用户 mu声,而不是突然停止。

我不确切地说是一份联合公报,因此,如果我在此贴上标记的话,请与我一道:

  1. Create the function function fadeOut()
  2. Add a for loop or something which assumes the current volume is 100, and incrementally reduces it to 0 using setTimeout()

我一把所有东西混为一谈,读写新物体,在理论上增加现有物体的方法,无助于......。

Ideas?

最佳回答

请查看这间图书馆:Buzz,允许做你需要的事情。 只是使用。

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签