Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:57
onfunction / offfunction examples for sound?
Poster: Streetwise
Dated: Wednesday January 12 2005 - 3:18:15 GMT
I can't seem to find much on the use of sound on mouseovers, excep one link that is dead (http://www.milonic.com/menu/menusample.php?sampleid=20)
Could someone post a sample of what an onfunction= and offfunction= might look like to play a file 'click.mp3' each time someone mouses over the menu items? Is that even possible?
Thanks
Dave Anderson
Poster: Ruth
Dated: Wednesday January 12 2005 - 8:01:53 GMT
Actually, you would need a function that would playSound on mouseover and stopSound on mouseOut. You would put that function into the top of the menu_data.js file, then in the aI string where you want the function to take place you'd put the code onfunction=whatever the onfunction name;offfunction=whatever the offfunction name;
There are a number of sites that have onmouseover sound function scripts, most seem to be fairly old so I don't know how much help any of them would be.
HEREand HERE and HERE are three I found.
One thing about sound onMouseOver is that all the functions I've found are set up for particular players. I don't know if there is some general function to search for whichever player is available for sound and will then play the sound onMouseOver.
Ruth