Adding sound to a link

  • lilstorm
  • Graduate
  • Graduate
  • User avatar
  • Posts: 162
  • Loc: New York

Post 3+ Months Ago

Ok here I am again ;)

I am looking for a way to add a sound when you go over the link or click on it. I have looked everywhere and can't find anything useful. Can this only be done with flash??
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

It can be done with JavaScript.. I did it once on a site a few years ago, but it got to be WAY too annoying, so I took it off, heh.

I can't remember the code off-hand, though.
  • lilstorm
  • Graduate
  • Graduate
  • User avatar
  • Posts: 162
  • Loc: New York

Post 3+ Months Ago

lol Wow you replied fast ;)

Ok well that gives me hope atleast ;) Yes I can see where it could be annoying. But I just want to use it for my opening page for my site, a neat little storm pic with a storm sound.

I actually got the idea from a flash thing but as I can't do that I am just trying to come up with something else. Thanks ;)
  • Geekette
  • Proficient
  • Proficient
  • User avatar
  • Posts: 482
  • Loc: The Land of NeverWinter (FL)

Post 3+ Months Ago

Lol, try not to puke when you go to the site, but it has what you're looking for:
http://www.lissaexplains.com/javascript2.shtml
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

http://www.webdevelopersnotes.com/tips/html/5.php3

There ya go, there's one using JavaScript.

You might also want to add some code to pre-cache the sound files (same way you do with images on rollovers), to speed things up a bit - otherwise, when they put their mouse over the link, they've clicked n' moved on before the sound file's downloaded, heh.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

The javascript solution is probably better. The link Geekette offered is Java and probably overkill.
  • Geekette
  • Proficient
  • Proficient
  • User avatar
  • Posts: 482
  • Loc: The Land of NeverWinter (FL)

Post 3+ Months Ago

Haha, yeah, I guess it would be. :icontongue:
  • lilstorm
  • Graduate
  • Graduate
  • User avatar
  • Posts: 162
  • Loc: New York

Post 3+ Months Ago

Thank you Geekette ;) Very neat site I will save it. Its kindof cute lol besides the bright yellow in the back lol.

Thank you Axe. ;) Alot simplier then I thought it would be cool.



Thanks so much guys. You're the best!!<3<3<3 :thumbsup:

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 76 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.