Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jul 2009
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Playing sound with mouse over

    Hello!

    Is there any universal way (for all browsers) of using JavaScript to play some sound when you mouse over some link? If yes can somebody link me to this code or at least write me how one would do this?

    Thank you!

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,243
    Thanks
    203
    Thanked 2,555 Times in 2,533 Posts
    http://www.hyper-gurl.com/mouseoversound.html

    Remove the hyphen in the above URL - for some reason this forum asterisks out hyper-gurl as one word.

    http://www.javascripter.net/faq/sound/onhover.htm


    Quizmaster: What colour is created by mixing red and yellow?
    Contestant: Green.
    Quizmaster: No, red and yellow.
    Contestant: Blue.
    Last edited by Philip M; 07-23-2009 at 11:40 AM.

  • #3
    New Coder
    Join Date
    Jul 2009
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    http://www.hyper-gurl.com/mouseoversound.html

    Remove the hyphen in the above URL - for some reason this forum asterisks out hyper-gurl as one word.

    http://www.javascripter.net/faq/sound/onhover.htm


    Quizmaster: What colour is created by mixing red and yellow?
    Contestant: Green.
    Quizmaster: No, red and yellow.
    Contestant: Blue.
    Yes, I've checked those links already. They are working, but for IE only.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,243
    Thanks
    203
    Thanked 2,555 Times in 2,533 Posts
    I think you will have to use Flash.

    http://www.codingforums.com/showthread.php?t=33411

  • #5
    New Coder
    Join Date
    Jul 2009
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    I think you will have to use Flash.

    http://www.codingforums.com/showthread.php?t=33411
    No, I've found answer already (works for Firefox, IE and Safari):

    http://webdesign.about.com/od/sound/...sound_oncl.htm

    Actually it looks like links you described above, but they didn't work and this one works. I think it has something to do with that <span id="dummy"></span> preload or something.

  • #6
    Banned
    Join Date
    Nov 2008
    Location
    not found
    Posts
    284
    Thanks
    0
    Thanked 53 Times in 51 Posts
    Quote Originally Posted by noartistname View Post
    Hello!

    Is there any universal way (for all browsers) of using JavaScript to play some sound when you mouse over some link?
    Try: http://scripterlative.com?playmedia


  •  

    Posting Permissions

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