| | 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! |
|
|
QUOTE(webdesignunlimited @ Oct 8 2005, 07:35 PM) 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! 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.
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..
How it is done in DreamWeaver? Couild someome copy & paste some example code.
CODE <script language="JavaScript"> <!-- // Script Source: www.CodeBrain.com var 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.
Before you add sounds to your links, think about your guests.
Do they like sounds? You can ask them with a Poll on your website!
Similar Topics
Keywords : sounds, links
how to rotate images with links in a sequence automatically without ha (0) hai this is my first post and i really hope someone finds it useful. i was looking for this trick Different CSS through different links? (10) I work on a website, and on this there are three different colour schemes. These are currently (9) Hi guys, For all the aspiring web-designer and webmasters out there - this deals with one of the Want to see a dead link on your site? (11) If you try to go to http://www.dead-links.com you will be asked for your domain or url. Enter it (19) hei can anyone tell me how to put sounds in HTML page.. plz tell me full script or coding thnx.... Looking for sounds, links
|
![]() Sounds With Links - how do you do it? |