生产2个或以上短的声音时,网页加载 [英] producing 2 or more short sounds when a web page loads

查看:156
本文介绍了生产2个或以上短的声音时,网页加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有6个声音文件(1.wav 2.wav等),其中3个不同的人有每个网页打开时间被听到。的数字是随机地选择。
我曾尝试多个嵌入,但只有最后一次选择的声音被生产。
我也试过,编造BGSOUND属性的JavaScript程序,但是,我没能同时产生多个声音。
声音要求页面打开在任自动播放,也可以通过一个按钮或链接点击触发,然而,只有点击是三个声音可以接受的。
是否有另一种方式来做到这一点?建议非常欢迎。

I have 6 sound files (1.wav 2.wav etc..) of which 3 different ones have to be heard each time the web page opens. The numbers are selected randomly. I have tried multiple "embeds" but only the last sound selected gets produced. I have also tried javascript routines that fiddle the bgsound attribute, however, I was not able to produce more than one sound at a time. The sounds are required to play either automatically on page open or they can be triggered by a click on a button or link, however, only one click is acceptable for the three sounds. Is there another way to do this? suggestions very welcome.

推荐答案

一个简单的Flash会做的伎俩比什么都好。
但是请考虑一下,除非你发展你的页面的Intranet应用和功能是特别要求的用户来说,它最有可能违背了网络的最佳可用性实践。
大多数用户认为其产生声音的网页是非常分散注意力,如果声音在页面上产生的加载最有可能将无法将其关闭。
如果要嵌入在网页一些声音可能会允许用户打开它明确地

A simple Flash would do the trick better than anything else. However please consider that unless you develop your page for the Intranet application and the feature was specifically requested by the users it will most likely go against the best usability practices for web. Most users consider the pages which produce sounds to be very distractive and if the sound is produced on the page load the most likely will not be able to turn it off. If you want to embed some sound in your page you may allow the user to turn it on explicitely.

这篇关于生产2个或以上短的声音时,网页加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆