dcsimg
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

  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

  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 04: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?

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