Chris Hick
11-11-2010, 12:17 AM
I was wondering if there is a javascript code that works in all browsers and will allow when a person clicks on a certain tab I have that it plays a short beep.
|
||||
|
View Full Version : Resolved OnClick sound for all browsers? Chris Hick 11-11-2010, 12:17 AM I was wondering if there is a javascript code that works in all browsers and will allow when a person clicks on a certain tab I have that it plays a short beep. Old Pedant 11-11-2010, 01:27 AM I posted this a while back: http://codingforums.com/showpost.php?p=1004972&postcount=13 It worked in IE, FF, and Chrome, at least. Dirt simple, too. glenngv 11-11-2010, 01:40 AM Alternative solution is to use JavaScript Sound Manger API (http://www.schillmania.com/projects/soundmanager2/) which uses a tiny flash file instead of using midi or mp3. I implemented it in my Tower of Hanoi game which is linked in my sig below. Chris Hick 11-11-2010, 01:54 AM Old Pedant, so what parts of that script do I need to take out and add to my link? The javascript in the head tags is obvious. EDIT: Never mind I got it working.. Thanks alot! |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum