|
|
|
|
![]() ![]() |
Oct 8 2005, 12:35 PM
Post
#1
|
|
|
Member [ Level 1 ] Group: Members Posts: 30 Joined: 5-October 05 Member No.: 8,922 |
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!
|
|
|
|
Oct 8 2005, 01:11 PM
Post
#2
|
|
|
Premium Member Group: Members Posts: 209 Joined: 7-October 05 From: Đà Nẵng City - Việt Nam Member No.: 8,966 |
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. |
|
|
|
Oct 8 2005, 04:23 PM
Post
#3
|
|
|
Member [ Level 1 ] Group: Members Posts: 30 Joined: 5-October 05 Member No.: 8,922 |
No, sorry, i don't use dreamweaver, i use frontpage
|
|
|
|
Oct 9 2005, 07:19 AM
Post
#4
|
|
|
the Q Group: [HOSTED] Posts: 1,124 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 myCENTs:4.06 |
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..
|
|
|
|
Oct 9 2005, 02:46 PM
Post
#5
|
|
|
Super Member Group: Members Posts: 595 Joined: 4-September 04 Member No.: 228 |
How it is done in DreamWeaver? Couild someome copy & paste some example code.
|
|
|
|
Oct 9 2005, 04:50 PM
Post
#6
|
|
|
Super Member Group: Members Posts: 572 Joined: 25-April 05 From: Nashville Tennessee Member No.: 4,340 |
Use Javascript for that kind of stuff. Here's some code for you:
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. |
|
|
|
Oct 15 2005, 09:54 AM
Post
#7
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 5 Joined: 15-October 05 Member No.: 9,125 |
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
|
Lo-Fi Version | Time is now: 2nd December 2008 - 12:06 PM |