Sound in CSS

admin

Administrator
Staff member
How can I add sound in css file? On hover and sound should be played.

a:hover
{
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 9pt;
background-color: transparent;
background-image: url('none');
color: red;
text-decoration:none
}As far as I can tell, there are no sound attributes in the CSS2 specification. I suspect you could do it with JavaScript using the onMouseOver event, for instance as described at <!-- m --><a class="postlink" href="http://www.javascripter.net/faq/sound/onhover.htm">http://www.javascripter.net/faq/sound/onhover.htm</a><!-- m --> .
 
Back
Top