473,382 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Basic sounds question

First, I have never even attempted to use sounds in a web page (even as
basic html) before. I'm totally green at this bit. Please assume that
anyone who is reaching the page in question is already expecting a
multimedia extravaganza, and possibly reading the files from a CD.

I assume the following is correct to preload a sound file?

preload[i] = new Sound();
preload[i].src = "filename.wav";

How do I make a sound file play in response to a javascript event?

Does playing sound files affect the focus at all?

Which sound formats are best to use from a multiplatform usability poit
of view? The critical goal is to work on windows with ie6 and nn7 (I can
test these), but I'd like it to be as broad-based as possible beyond
that. I want to assume that no special plugins have/need to be
installed.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #1
1 2829
On Fri, 5 Dec 2003 07:11:33 +0900, "Fabian" <la****@hotmail.com>
wrote:
I assume the following is correct to preload a sound file?

preload[i] = new Sound();
preload[i].src = "filename.wav";
Why would you assume that? Is the way to preload chickens:

preload=new Chicken()
preload.src="bantam"

? Of course not.

The way to suggest a client download a sound URI is :

preload = new Image();
preload.src = "filename.wav";

However that's only a tiny part of preloading, you need to sort out
all the caching too.
Does playing sound files affect the focus at all?
That would depend on how you do it...
I want to assume that no special plugins have/need to be
installed.


not all browsers have a sound capability. either using an embed or
iframe element is probably the most guaranteed method.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: BLElliott | last post by:
I think this is a very basic question, so feel free to direct me to a FAQ or other resource to go and get myself educated, if that's the best answer. Can I perform web browser functions from a...
2
by: Gary McGill | last post by:
I'm finding the XmlSchema object model very hard to follow :-( I've figured out by trial and error how to do most things I need, but this one has me beat. Suppose my schema has a simple type...
5
by: Bob Alston | last post by:
I am looking for any Microsoft Access based software that could be used for a United Way agency that provides basic needs assistance - food, clothing, financial (rent, utilities, Rx, gasoline,...
10
by: Jason Curl | last post by:
Greetings, I have an array of 32 values. This makes it extremely fast to access elements in this array based on an index provided by a separate enum. This array is defined of type "unsigned long...
8
by: Fabrizio Cyber | last post by:
Hi all, I want to use a .js into a visual basic project. How can I do it ? I've tried to open the script code into my project....and then ??? I see the code but I don't jnow how to make it...
8
by: Grant Merwitz | last post by:
hi I am using Javascript to do my validation This is so i can display a loading message after a form is submitted. Now, currently i do so like this. I have a button, textbox and label like...
4
by: CSharpguy | last post by:
I'm not sure if this is the correct forum or not, but I have a basic question. Currently we have are doing calculations via stored procedures and then returning the results back to the client in...
2
by: CAM | last post by:
Hello, I am wondering if someone can give me some pointers. Currently I am using Access 2002 I developed an inventory tracking database, which this database is used in California and in...
10
by: CCLeasing | last post by:
How do I communicate between different user instances of my windows forms project? Im trying to write a program that will run on a network of 15 pcs. 5 of the pc's will run the admin part of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.