This is a discussion on Can I play a sound onMouseOver? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi all....... How can I play a sound onMouseOver? Thanks & Regards itbarota....
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi all....... How can I play a sound onMouseOver? Thanks & Regards itbarota. |
|
#2
| |||
| |||
| Hi...... Yes, you can call a sound playback function from the onMouseOver event handler of a hyperlink. Try this example: place your mouse pointer over the following hyperlink, and the browser will start the playback. <a href=# class=playOnHover title="This hyperlink plays a sound onMouseOver." onClick="return false" onMouseOver="playSound();return true" onMouseOut ="stopSound();return true" > J.S.Bach's Suite in B-minor </a> The source code of the functions playSound() and stopSound() can be found in the Playing Sound section. Thanks....... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| to play video files in VB.NEt application | arjkhanna | VB.NET Programming | 3 | 10-02-2009 01:02 AM |
| How to play the videos in PHP | Vani Sri | PHP Programming | 8 | 01-19-2009 05:55 PM |
| How to open popup onmouseover and to close the same window onmouseout javascript? | bluesky | HTML, CSS and Javascript Coding Techniques | 3 | 12-07-2007 05:51 AM |
| Play MP3 file using C# | oxygen | C# Programming | 0 | 07-19-2007 11:08 PM |
Our Partners |