...

View Full Version : mouseover in Mozilla



yangmanrui
01-07-2008, 04:40 PM
My mouseover - sound works in IE , but it doesn't work in Mozilla. Is there something wrong with the code?

http://www.languagelearninglinks.org/homepagecatalan.htm

thank you,

man rui

VIPStephan
01-07-2008, 05:20 PM
Is there something wrong with the code?

Yes, almost everything is wrong. http://javascript.about.com/od/hintsandtips/a/worst_4.htm

<bgsound> is MS proprietary (i.e. it works only in IE anyway) and has never been part of any HTML standard, and hence, shouldn’t be used. <object> (http://www.w3.org/TR/html401/struct/objects.html) is intended to include multimedia on websites.

yangmanrui
01-07-2008, 10:48 PM
Would you mind suggesting some place where I could find a better code for MousOver sound?

Man rui

VIPStephan
01-07-2008, 11:51 PM
OK, there is no way to play a sound on mouseover across all major browsers. The method you were using is very out-dated and works only in Internet Explorer. And all sources promoting a method use this or some similar deprecated methods that all don’t work in Mozilla based browsers (and I doubt that Safari will work).

On this note you shouldn’t do it with a mouseover anyway. What happens if a user accidentally mouses over several links? it would play all sounds a the same time which can be very annoying. What happens if the user has no mouse (browsing with keyboard, using mobile phone/PDA)? S/he won’t hear anything. Users with screen readers? Forget it!

The only cross-browser compatible solution is to use small Flash objects (buttons) that play the sound onclick, i.e. when the user actually wants to play it (with whatever device s/he is using).

There are many players out there but two of them seem to be kinda what you need. However, you still might wanna look for other players.


http://musicplayer.sourceforge.net/
http://www.wimpyplayer.com/products/wimpy_button.html

yangmanrui
01-09-2008, 03:22 PM
Just out of curiosity, don't you think that this mouseover feature is very nice and useful? Wouldn't it be helpful if Mozilla adopted it?


man rui

Apostropartheid
01-09-2008, 04:52 PM
...No.

I don't have time for a full blown story now, but basically HTML [HyperText Markup Language] is governed by the W3C. It makes the standards we use. The method you're using is non-standard, and it's highly unlikely that it will be adopted by Mozilla.

Then again, it has adopted the use of <blink> and <marquee> (http://www.goer.org/HTML/examples/htmlhorror1.html) (click if you dare!)

Excavator
01-09-2008, 05:08 PM
Then again, it has adopted the use of <blink> and <marquee> (http://www.goer.org/HTML/examples/htmlhorror1.html) (click if you dare!)


Hahah!!!:thumbsup: Too funny.

VIPStephan
01-09-2008, 09:29 PM
Just out of curiosity, don't you think that this mouseover feature is very nice and useful? Wouldn't it be helpful if Mozilla adopted it?


man rui

You can play a background sound if you put an object element into the head of your document. I haven’t tried it thoroughly but it won’t paly a sound on mouseover of a link because setting the value of the data attribute with JS won’t start the clip yet. It requires a reload of the page. However, with some AJAX (http://en.wikipedia.org/wiki/Ajax_(programming)) this could be possible…

yangmanrui
01-11-2008, 01:46 AM
Can you "nominate" a tag to those people in W3C organization so they would think about it? It is still an organization so, I assume that some of their decisions are also politically based or not?


Man rui

oesxyl
01-11-2008, 05:06 AM
Can you "nominate" a tag to those people in W3C organization so they would think about it? It is still an organization so, I assume that some of their decisions are also politically based or not?
Man rui

yes their decisions are also politically based:
1. Many times Microsoft have to two member in one commision despite the fact that other have only one and after the draft become recomandation, same Microsoft don't respect the recomandation.
2. is hard to make standards when developers don't follow them and w3c have no choice, some time they must take some decision very hard to understand, see html5 for details

best regards

Apostropartheid
01-11-2008, 04:39 PM
Generally the needs are assessed adequately by those in the respective Working Group of the standard.

According to the guys there MS has shown a big turnaround in their willingness to accept standards, and indeed are pushing at it more every time. Give them some credit...

oesxyl
01-12-2008, 07:22 AM
Generally the needs are assessed adequately by those in the respective Working Group of the standard.

According to the guys there MS has shown a big turnaround in their willingness to accept standards, and indeed are pushing at it more every time. Give them some credit...

yes, ms make big changes last years. My post was more against politics, ms was the 'victim' because of the thread subject :)

best regards

Arbitrator
01-12-2008, 08:41 AM
Just out of curiosity, don't you think that this mouseover feature is very nice and useful? Wouldn't it be helpful if Mozilla adopted it?I believe that you can already achieve this effect by loading a sound file within a hidden iframe element or by using a technology such as Flash.


Then again, it has adopted the use of <blink> and <marquee> (http://www.goer.org/HTML/examples/htmlhorror1.html) (click if you dare!)I believe that the blink element originated with Netscape and that Mozilla is an offshoot of Netscape, so support for the blink element isn’t surprising.


Can you "nominate" a tag to those people in W3C organization so they would think about it?There’s already an audio element in the HTML 5 draft [1] [2]. The HTML 5 working group membership is open to the public, so it is possible to nominate a new element too, provided that you’re willing to take the time to explain how it should work.


http://www.whatwg.org/specs/web-apps/current-work/multipage/section-video.html#audio (WHATWG Working Draft, multi‐page version)
http://www.w3.org/html/wg/html5/#audio (W3C Editor’s Draft)

Apostropartheid
01-12-2008, 04:34 PM
I believe that the blink element originated with Netscape and that Mozilla is an offshoot of Netscape, so support for the blink element isn’t surprising.
Not even a smile? :( Yeah, but it didn't have to support the blink element. It's just bad taste.

Arbitrator
01-13-2008, 09:19 AM
Not even a smile? :(Well, it was amusing… and absolutely hideous. :p

I made a slight “improvement” to your demo: http://www.jsgp.us/demos/cf130841.html. Try it out in Mozilla Firefox (2.0.0.11) or Safari (3.0.5&#160;Windows&#160;beta) for the full effect. You might just kill yourself.

It seems to work in Opera (9.25) and Win. Internet Explorer (~7) now sans overflow: hidden, for whatever reason.

Yeah, but it didn't have to support the blink element. It's just bad taste.True. They didn’t maintain legacy support for the layer element and blinking can be achieved via CSS (since CSS1) now.

The marquee element should be replaceable by CSS eventually too, thanks to the CSS3 Backgrounds and Borders module. I’m not sure whether or not I should shudder at the prospect.

oldcrazylegs
01-16-2008, 12:00 AM
Below is a site I ran into yesterday while searching for a way to do sound effects onmouseover for Firefox. You will have to examine the source code in the upper-frame on that site. However, it could be a bit slow to respond since they also have a script in there to expand the frame size when you mouseover a link in that frame. This is the only script I could find that does that. I suggest you contact the person that owns the site. He has mentioned in his scripts that he doesn't appreciate thieves. :D He has a Luvtobepaid link in the scripts.

http://veryuseful.info/linesim/

You should get the "View Source With" Firefox Plugin. It is very useful when trying to view Style Sheets and JavaScripts on websites. This thing is really slick.

https://addons.mozilla.org/en-US/firefox/addon/394

Apostropartheid
01-16-2008, 04:13 PM
I made a slight “improvement” to your demo: http://www.jsgp.us/demos/cf130841.html. Try it out in Mozilla Firefox (2.0.0.11) or Safari (3.0.5 Windows beta) for the full effect. You might just kill yourself.

That's it! I retire!

VIPStephan
01-16-2008, 05:14 PM
The marquee element should be replaceable by CSS eventually too, thanks to the CSS3 Backgrounds and Borders module. I’m not sure whether or not I should shudder at the prospect.

Well, the fact that this will… – might – be done with CSS at least separates it from the structrual part and makes it (more) accessible to applications/devices with differing support.

You can’t argue about taste, though…

Arty Effem
02-25-2008, 04:46 AM
Below is a site I ran into yesterday while searching for a way to do sound effects onmouseover for Firefox. You will have to examine the source code in the upper-frame on that site. However, it could be a bit slow to respond since they also have a script in there to expand the frame size when you mouseover a link in that frame. This is the only script I could find that does that.
http://veryuseful.info/linesim/
The latest version of that code is obtainable here: http://scripterlative.com?playmedia (http://scripterlative.com?playmedia)

Apostropartheid
02-25-2008, 04:51 PM
It seems this thread was so bad Arbitrator (http://www.codingforums.com/member.php?u=32216) killed himself. Or Spookster got him...

*kills thread*



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum