Jump to content
xisto Community
Sign in to follow this  
webdesignunlimited

Sounds With Links how do you do it?

Recommended Posts

I was wondering to myself the other day, "some websites, when you hover over one of their links, make a sound like a bleep or something. Wouldn't that be good to have". So, I want to know if anyone knows how to do it! :mellow:

1064325362[/snapback]


Do you use Dreamweaver. In that program, we can make the browser to play a sound when user move their mouse on an object (there're many other events to choose from).

 

Another way to so if to use FLASH. This way is easier and should make fast loading site too.

Share this post


Link to post
Share on other sites

I don't really like sounds in websites, but this is my personal taste and opinion, I think that people should be allowed to choose to use sounds or not.. :mellow:

Share this post


Link to post
Share on other sites

Use Javascript for that kind of stuff. Here's some code for you:

<script language="JavaScript"><!--// Script Source:  http://forums.xisto.com/no_longer_exists/ audioOn = false;function audioDo(doWhat,toWhat){   if(audioOn){      var A = eval('document.'+toWhat);      if (A != null){         if (doWhat=='stop') A.stop();         else{            if (navigator.appName == 'Netscape') A.play();            else{               if (document.M == null){                  document.M = false; var m;                  for(m in A) if (m == "ActiveMovie"){                     document.M = true; break;                     }                  }               if (document.M) A.SelectionStart = 0;               if (document.M) A.play();            }         }      }   }}//--></script>

And here is a link to where it came from get the kit and you can play around with it till you get what you want, then all you need is to get a bunch of sounds to go with the events.

I used to do that with static web pages but am more into PHP and so forth. but hope that gets you started.

This script can be found in its entirety right at this link to sound kit
Look Almost all the way down the page and find the Essential Tricks category and look for the JavaScript Sound Download Kit and you should have more than you need to accomplish your task.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.