www.webdeveloper.com
Results 1 to 5 of 5

Thread: sound on a:hover

  1. #1
    Join Date
    Dec 2002
    Posts
    55

    sound on a:hover

    possible???
    would it be something like:

    a:hover {sound:url(sound.mp3);}

    thanks

  2. #2
    Join Date
    Nov 2002
    Posts
    984
    This is the section in the CSS spec you are looking for

    http://www.w3.org/TR/REC-CSS2/aural.html
    // Stefan Huszics

  3. #3
    Join Date
    Nov 2002
    Posts
    411
    surely though you need a screen reader for that? I think he just wants something that makes a noise when you hover over a link
    John

  4. #4
    Join Date
    Nov 2002
    Posts
    49
    Dont thinks its possible in CSS, try Javascript:
    <form>
    <bgsound src="" id="sound">
    <a href="Link.html" OnMouseOver="sound.src='SOUND.mp3'">aaa</a>
    Also, Document.all.sound.src Might also work
    Last edited by alcodes; 12-19-2002 at 03:32 PM.

  5. #5
    Join Date
    Dec 2002
    Location
    Perth, Western Australia
    Posts
    55
    How about including a DIVison and changing it's innerHTML through JavaScript to an OBJECT, which would make browser play a sound. Or maybe an inline frame? Would be pretty slow. Like 45 seconds later... "ding". User: wtf?
    Not all browsers are good. Some of them go bad.
    Not long ago, one of them went as bad as you can go. His hame was I.. I... Well, people usually say that he is a browser That Must Not Be Named.
    That browser killed many of our best coding conventions. It twists features. It knows how to counter-bug any of our designs. It is in possesion of a group of supporters so large that no other browser may stand up to it and live.
    But now there is a hope.

    Site: http://nik-sergeev.com (wood sculpture).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles