bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

peepo.com - sounds and events



16 years ago
14 years ago


(Reporter: jonathan chetwynd, Assigned: asa)


1.0 Branch

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [proprietary-js], URL)


(1 attachment)



16 years ago
It is essential for my students that they hear sounds when javascript events are
triggered, for instance onmouseover. It helps them to learn via cause and effect.

Can anyone tell me if this is possible with mozilla.
if so please point me to a uri.

if not why is it not?
when might it be?


Comment 1

16 years ago
Mousing over most of the images i get an error in JS console:

Error: event is not defined
Source File: http://www.peepo.com/
Line: 28

Comment 2

16 years ago
hmm. should this bug is still be opened?

a sound can probably be plaid by embedding a wav into the page and letting the
right plugin handle it. 

Comment 3

16 years ago
I've been trying for about 4 years without success, so their is certainly an 

'probably' cuts no ice, either you have an example that works for you, or not.

Perhaps Aaronl could provide a comment?


16 years ago
Blocks: 127812

Comment 4

16 years ago
Created attachment 83951 [details]
add plugin and test

tested on:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510

I have only XMMS and I can listen *.wav, *.mp3 and *.m3u files.
About "Plugger" plugin - some time crash (plugin, not browser).

Comment 6

16 years ago
Thank you roumenpetrov, your suggested HTML works nicely.
Last Resolved: 16 years ago
Resolution: --- → FIXED

Comment 7

16 years ago
I am sorry this is not good enough.
It does not work for me.
This system seems very broken in comparison with say flash sound.

Either one allows a pop up dialogue, for every event, which is not acceptable, 
if one unticks the 'ask me every time' box
the first 2 roumenpetrov examples work fine, however the others, on my system, 
now wont play but only ask one where to save the file.
I also dont understand how one can get the dialogue back, as naturally I dont 
want to be stuck with saving and opening every time.

also the player is not available in the background.
Resolution: FIXED → ---

Comment 8

16 years ago
- use <embed> with autoplay="false" and hidden="true" to preload audios
- reserve a <embed> with loop="1" for playing audio
- in your onmouseover event, simply reset the src of the play embed item

see http://www.apple.com/quicktime/authoring/embed.html

Comment 9

16 years ago
embed might be fine if you have an example page that works.
the link you point to states it is specific to quicktime.
in my experience most professionals state the <object> is not well supported.
and yes I have tried this a number of different ways without success.

ideally your example should work for a number of different browsers.

thanks again
what is the "bug" on this..?

Comment 11

16 years ago
wtf is up here ?
the site uses document.all
this is tech evang and nothing more !
script is at http://www.peepo.com/scripts/main-breadcrumb-nav.js
tons of this..

would be better...
Assignee: asa → susiew
Component: Browser-General → US General
Ever confirmed: true
OS: Linux → All
Priority: -- → P3
Product: Browser → Tech Evangelism
QA Contact: doron → zach
Hardware: PC → All
Whiteboard: [proprietary-js]
Version: other → unspecified

Comment 13

16 years ago
I've changed the script, so that the 'games' link uses:


this did not produce any result using mozilla 1.1b, Kai and Michael:

do you have an example site that worls for you, ie plays a sound on mouseover, 
or other event, other than 'click'?

ah... 'mysound' is a <bgsound/>-Element, which only exists in MSIE. Try to use
yembed> or - even better <object>


16 years ago
Summary: sounds and events → peepo.com - sounds and events

Comment 15

16 years ago
function playmysound(thisSound){
 if (thisSound) {
 	var link=document.getElementById("myDummyforSoundonEvent")
	link.innerHTML= '<embed src="http://www.peepo.com/sounds/words/' + thisSound + 
'.wav" width="0.1" height="0.1" />'

with <div id="myDummyforSoundonEvent"></div> in the body

http://www.peepo.com  and 
are working examples

is a method that  is known to work for IE6/Xp IE5.5/win98 IE5.2/mac and moz1.3a/mac
but only on mac,  though it is likely that other moz will also work. IT DOES NOT WORK for 
linux or PC.

why is it not possible to write to the .src  directly?
ie give the embed tag a name or id and then reference that,  and change the src

it is not good code, ie no object tags. IE6 does not let one(me) reference object tags by 
name or ID, to change the .innerHTML of an object tag...

equally if one adds an <object>...</object> one cannot use .innerHTML successfully with 

Component: US General → Browser-General
Product: Tech Evangelism → Browser
Version: unspecified → 1.0 Branch

Comment 16

16 years ago
Jon, if you want this to be assigned to browser general, you need to assign to
the default owners when changing the product/component. What plugin will play
.wav files anyway?
Assignee: susiew → asa
QA Contact: zach → asa
I am getting some sounds from http://www.peepo.com with moz 1.5rc1 on W2k. When
I look at the source, I see that a lot of the elements do not have .wav files
associatted with them.


Comment 18

15 years ago
Fixed as of moz 1.5rc1

checked again W2K and macOSx.2

Amazing what a team


We may be able to switch to Mozilla across all our machines, and officially recommend Mozilla as 
our standard browser: have to see how SVG1.2 support is progressing :-)
Last Resolved: 16 years ago15 years ago
Resolution: --- → FIXED

Comment 19

15 years ago
Fixed as of moz 1.5rc1

checked again W2K and macOSx.2

Amazing what a team


We may be able to switch to Mozilla across all our machines, and officially recommend Mozilla as 
our standard browser: have to see how SVG1.2 support is progressing :-)

did I forget a plug for http://www.peepo.co.uk
our all new SVG website for people with learning difficulties?
It requires <use> external graphic library file support, and will require event support when I can 
find a browser that supports SVG1.2 even partially

Comment 20

15 years ago
The correct resolution is wfm -> reopen
Resolution: FIXED → ---

Comment 21

15 years ago
-> wfm
Last Resolved: 15 years ago15 years ago
Resolution: --- → WORKSFORME
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.