SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to play sound when hovers?

    Newbie here. I was wondering if there is a way to play a sound when the mouse hovers over the navmenu on a site using html and css? -Thanks

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,214
    Mentioned
    457 Post(s)
    Tagged
    8 Thread(s)
    No, I don't think so.

  3. #3
    SitePoint Guru etidd's Avatar
    Join Date
    May 2011
    Location
    atlanta, ga
    Posts
    632
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I did this with Flash when I was faking like I knew anything about web development. Unless it is the most QUIET and non-annoying sound, I would be very wary of making a website that makes people think they're playing pinball with spontaneous, unpredictable noises.

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,214
    Mentioned
    457 Post(s)
    Tagged
    8 Thread(s)
    Yes, you can do it with Flash, like Eric Watson does here:

    http://www.buildingblockshomedaycare.com/aboutus.html

    Hove over the links near the top left.

  5. #5
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,888
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by etidd View Post
    I did this with Flash when I was faking like I knew anything about web development. Unless it is the most QUIET and non-annoying sound, I would be very wary of making a website that makes people think they're playing pinball with spontaneous, unpredictable noises.
    It's been a standard and well-accepted practice for years that you do not play sounds from a web page unless a user has specifically actioned a request for that sound (eg by clicking on a 'play' button). Websites that start playing sounds uninvited are likely to be closed down and never revisited, especially if they do so when they cause the visitor particular embarrassment, such as at work or on a train. You don't know where I am when I'm looking at your website, and you don't know what else I might be listening to at the same time, so do not have your website start playing sounds at me, or you've lost me forever.

  6. #6
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,657
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Here is how. As is it only works on one link. It may be possible to alt it so it can work on all the nav links - dont know? http://www.visibilityinherit.com/cod...mouse-over.php Someone in the comments looks like they have a solution maybe. Otherwise yep flash.


Bookmarks

Posting Permissions

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