looking for an example of sound on mouseover

A forum for, well, anything really.
Gripes, moans, ideas or just general chit chat. EXCEPT SPAM!!! - Don't just register to post here - IT WILL GET DELETED!!!
Post Reply
wpatters1229
Super Advanced
Super Advanced
Posts: 90
Joined: Thu May 30, 2002 7:35 pm

looking for an example of sound on mouseover

Post by wpatters1229 »

I know you can do a onfunction on a menu but I just want to see an example on a site so I can test it againest several browser types and then it would be nice to see the aI for one of the items. I did a search but kept coming up with a link to a page that would not load.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

The menu can fire onmousover and onmouseout events (onfunctionand offfunction)

You could use these to fire a custom JavaScript function to play a sound.
wpatters1229
Super Advanced
Super Advanced
Posts: 90
Joined: Thu May 30, 2002 7:35 pm

sound example

Post by wpatters1229 »

I actually figured it out from one of your examples. The only problem is that it takes time for the sound to get loaded and therefore makes using the menus a bit slow for the first time. The files are really small...1k It was just something to play with.

Thanks
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi
The only problem is that it takes time for the sound to get loaded
preload the sound,

http://www.javascripter.net/faq/sound/preload.htm

Michael
idaryl
Beginner
Beginner
Posts: 1
Joined: Fri Sep 29, 2006 8:53 pm

Add it where? - what to add?

Post by idaryl »

The menu can fire onmousover and onmouseout events (onfunctionand offfunction)

Where do you add the string for this to work - I found this:

Code: Select all

// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
or is there another place :?: :?:

and if its a funtion() call - how is the string written onmouseover="mySwf.Play()
I have written flash file that responds to a mouseover/onclick/mouseout event - and I'm trying to get it to work within the structure of the menu system
any help on this would be appreciated[/i]
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

There are two menu item properties that correspond to onmouseover and onmouseout events; they are onfunction and offfunction, respectively. Click here to see an example showing the use of these properties.

Hope that helps,

Kevin
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Also, you can try here which is specific to doing sound onmouseover using onfunction.




Ruth
Post Reply