473,770 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sound width javascript

I need to create sound with Javascript. Until now all the code I have
been trying doesn't work width Firefox. can some one please show me
how to do it, or give me a link to a good article?

thanks

Aug 24 '07 #1
2 2093
Gandalf wrote:
I need to create sound with Javascript.
Generally, you cannot do that with a Web browser. You can create (X)HTML
elements that refer audio media and/or you can access plugin APIs to play
that audio media.
Until now all the code I have been trying doesn't work width Firefox.
"Does not work" is a useless error description. [psf 4.11]

http://www.jibbering.com/faq/faq_not...ml#ps1DontWork
can some one please show me how to do it [...]
Show the relevant part of your code, or post a URL of a test case.
PointedEars
--
var bugRiddenCrashP ronePieceOfJunk = (
navigator.userA gent.indexOf('M SIE 5') != -1
&& navigator.userA gent.indexOf('M ac') != -1
) // Plone, register_functi on.js:16
Aug 24 '07 #2
On Aug 24, 3:58 am, Gandalf <goldn...@gmail .comwrote:
I need to create sound with Javascript. Until now all the code I have
been trying doesn't work width Firefox. can some one please show me
how to do it, or give me a link to a good article?
If you're willing to spend $5 (I think, maybe just $1), you can go to
www.istockphoto.com and download a Flash sound player. Most don't
require you to have Flash, and just have an XML file you can edit with
the URL of the audio you'd like to play. There are others free online
but the ones I've seen require you have Flash to edit the file.

It wont play on computers that don't have Flash installed, but, most
do these days.

If you need more info, or a specific link to one I've used before, let
me know. I didn't post one because the design may not match your
site, and I'm a bit worried people will think I'm linking to one of my
own.
Aug 24 '07 #3

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

Similar topics

7
2893
by: John | last post by:
Hello. If I wanted to make a website of sound files that are playable within the actual webpage, but people visiting the site can't save, or see the filenames so they can download from the site, is this possible? What would be the best format to save the sound clips in? I would need something that doesn't take up too much space but is good quality.
2
2189
by: Keyser | last post by:
On most my pages, I use Javascript to play a sound. It works fine in Netscape 4.7, Netscape 7.2, Firefox 1.0, IE5 and IE6 using Windows98 as the operating system. However, using WindowsXP as the operating system, the entire Netscape 7.2 browser and Firefox 1.0 browser shuts down when I try to use the Back button on these pages. Is there some setting in Windows XP that is causing this or is there something I can add to the Javascript to...
2
1567
by: Les Juby | last post by:
Hi A clint has insisted we load a babbling brook sound clip to his home page but it needs to load last to avoid delays in loading images and other elements. Simply declaring it at page bottom doesn't help much. Tried a few code snips found here and there but with lirrle success. Pretty bog standard coding, and the requirement is for IE-6
4
3010
by: murrayatuptowngallery | last post by:
I have looked at some mouseover/ sound object scripts and can't get them to work. Most were more complex than needed and introduced several new parameters for me. I found a simple pair of html code segments that accomplish display of an image and automatic 'display' (playback) of a .wav file, and apparently are usable for both IE and NS, " <object height="100%" width="100%"
4
2945
by: Bruce W.1 | last post by:
My web app refreshes once a minute, using a meta refresh tag. Is there a way to eliminate the tick sound emitted by IE when it refreshes? Thanks for your help.
2
5884
by: hayz | last post by:
Flash sound file looping problems hello there I'm definitely a newb so please bare some patience. I have a flash sound file on the index page of a site i'm working on. First off i need the .swf file to continuously loop, secondly i need this same file to play on every page visited on the site. I've researched and tried to just follow examples but each time there's no loop. The file plays once every time the page loads and then ends. ...
26
3904
by: Jake Barnes | last post by:
I did a search on the newsgroup comp.lang.javascript. I was searching for "how to play a sound with Javascript". I'm somewhat suprised that the majority of entries are from the 1990s, and there are almost no posts from the last 3 years: http://groups.google.com/group/comp.lang.javascript/search?group=comp.lang.javascript&q=how+to+play+a+sound+with+Javascript&qt_g=Search+this+group Even after sorting by date, there don't appear any...
1
1834
by: OBAFGKM_RNS | last post by:
I am not an expert in javascript, so forgive me if all this sounds dumb. On my webpage, I have slot machine. I want to hear a click sound when the wheels stop spinning. Heres how i can SORT OF do it: in my javascript: var sound = document.getElementById("wl1_click");sound.Play(); and in my html: <embed id="wl1_click" src="clickb.wav" width="0" height="0"
1
2359
by: OBAFGKM_RNS | last post by:
In my html, I have an embedded sound wav. I access that sound from my javascript using Play() and Stop(). However, once stopped, the sound will aways resume from where it left off, (making Stop behave more like a Pause). I want it to start from the beginning. The only way I've been able to start the sound from the beginning every time, is to use inner.HTML to reload the embedded wav, thereby reopening the media plugin. There is always a...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.