Old 18-10-2006, 03:14   #1 (permalink)
Designer101
Registered User
 
Designer101's Avatar
 
Join Date: Oct 2006
Posts: 21
css sound file

i got a sound file and i want it to play every time you scroll a link in one of my sites menu's . Can i do this with css? i tried doing this using css but i couldnt find a function that made sense like: sound-file or anything like that.
  Reply With Quote
Old 18-10-2006, 03:16   #2 (permalink)
centrereed
Senior Member
 
centrereed's Avatar
 
Join Date: Jul 2006
Location: Sheffield
Posts: 121
A sound that plays eveytime you do something on a site sounds really anoying for the user.

Whats the site and what function would it add?
  Reply With Quote
Old 18-10-2006, 03:22   #3 (permalink)
Designer101
Registered User
 
Designer101's Avatar
 
Join Date: Oct 2006
Posts: 21
Quote:
Originally Posted by centrereed
A sound that plays eveytime you do something on a site sounds really anoying for the user.

Whats the site and what function would it add?
it would be cool, its a very short sound of me poping a piece of gum, it sounds perfect for a link hover effect, it would't be annoying the way i set it up.

If seen softwares that do this but i cant figure how to intergrate it into a website.
  Reply With Quote
Old 18-10-2006, 04:48   #4 (permalink)
mx
Global Visionary™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,715
Quote:
Originally Posted by Designer101
it would be cool

in the same way as a shady t-shirt is cool?
__________________
  Reply With Quote
Old 18-10-2006, 04:59   #5 (permalink)
lukasarts
Shiv.
 
lukasarts's Avatar
 
Join Date: Jul 2006
Location: Elsewhere
Posts: 1,105
Quote:
it would be cool, its a very short sound of me poping a piece of gum, it sounds perfect for a link hover effect, it would't be annoying the way i set it up.

No, that wouldnt be cool. And you can't do something like that with CSS.
  Reply With Quote
Old 18-10-2006, 05:33   #6 (permalink)
Designer101
Registered User
 
Designer101's Avatar
 
Join Date: Oct 2006
Posts: 21
Quote:
Originally Posted by lukasarts
No, that wouldnt be cool. And you can't do something like that with CSS.
yOU GUYS DONT KNOW WHAT IT WOULD BE LIKE SO HOW CAN YOU SAY IT WONT BE COOL?
That sucks you cant do that with css, if somone knows of a way to do this please let me know.
  Reply With Quote
Old 18-10-2006, 05:36   #7 (permalink)
centrereed
Senior Member
 
centrereed's Avatar
 
Join Date: Jul 2006
Location: Sheffield
Posts: 121
Post the site address so we can see where you want to use it.
  Reply With Quote
Old 18-10-2006, 05:59   #8 (permalink)
sub
______________________
 
sub's Avatar
 
Join Date: Jul 2005
Posts: 7,797
Send a message via MSN to sub Send a message via Skype™ to sub
Quote:
Originally Posted by Designer101
yOU GUYS DONT KNOW WHAT IT WOULD BE LIKE SO HOW CAN YOU SAY IT WONT BE COOL?
And keep you're voice down. Damn kids.
__________________
  Reply With Quote
Old 18-10-2006, 06:12   #9 (permalink)
lukasarts
Shiv.
 
lukasarts's Avatar
 
Join Date: Jul 2006
Location: Elsewhere
Posts: 1,105
Quote:
yOU GUYS DONT KNOW WHAT IT WOULD BE LIKE SO HOW CAN YOU SAY IT WONT BE COOL?

Educated guess.
  Reply With Quote
Old 18-10-2006, 09:30   #10 (permalink)
mx
Global Visionary™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,715
Quote:
Originally Posted by Designer101
yOU GUYS DONT KNOW WHAT IT WOULD BE LIKE SO HOW CAN YOU SAY IT WONT BE COOL?

Oh but we do! We all were young and foolish once...

apart from PGO that is!
__________________
  Reply With Quote
Old 18-10-2006, 17:14   #11 (permalink)
Designer101
Registered User
 
Designer101's Avatar
 
Join Date: Oct 2006
Posts: 21
Quote:
Originally Posted by max h
Oh but we do! We all were young and foolish once...

apart from PGO that is!
god i put a img of my self and everyone thinks im young and foolish. Im just gonna forget about the sound file thing, it would be amusing to me, i would be the one scrolling my links to hear the sound, but other than that you guys all think its annoying.
  Reply With Quote
Old 18-10-2006, 17:29   #12 (permalink)
Luke A
Web Developer
 
Luke A's Avatar
 
Join Date: Jul 2006
Posts: 2
You can do it in flash, and possibly javascript. Its annoying btw, so I wouldnt waste your time.
  Reply With Quote
Old 16-01-2007, 16:46   #13 (permalink)
DesignThanet
.com
 
Join Date: Jan 2007
Location: Kent, England.
Posts: 18
Send a message via MSN to DesignThanet
VERY ANNOYING, but you asked for help so i will help..

Put this in the body of your file.

Code:
<!-- --><bgsound id="soundfiles"> <script language="JavaScript"> aySound[0] = "CHORD.wav"; aySound[1] = "DING.wav"; aySound[2] = "CHORD.wav"; // Don't alter anything below this line IE = (navigator.appVersion.indexOf("MSIE")!=-1 && document.all)? 1:0; NS = (navigator.appName=="Netscape" && navigator.plugins["LiveAudio"])? 1:0; ver4 = IE||NS? 1:0; onload=auPreload; function auPreload() { if (!ver4) return; if (NS) auEmb = new Layer(0,window); else { Str = "<DIV ID='auEmb' STYLE='position:absolute;'></DIV>"; document.body.insertAdjacentHTML("BeforeEnd",Str); } var Str = ''; for (i=0;i<aySound.length;i++) Str += "<EMBED SRC='"+aySound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'>" if (IE) auEmb.innerHTML = Str; else { auEmb.document.open(); auEmb.document.write(Str); auEmb.document.close(); } auCon = IE? document.all.soundfiles:auEmb; auCon.control = auCtrl; } function auCtrl(whSound,play) { if (IE) this.src = play? aySound[whSound]:''; else eval("this.document.embeds[whSound]." + (play? "play()":"stop()")) } function playSound(whSound) { if (window.auCon) auCon.control(whSound,true); } function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); } //--></script> <!-- -->

Then to play the sound over an image use

Code:
<img src="yourimage.gif" onMouseOver="playSound(3)" onMouseOut="stopSound(3)">

and for links it works

Code:
<a href="linkhere" onMouseOver="playSound(0)" onMouseOut="stopSound(0)">YOUR LINK</a>

Hope this helps.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive
Web Hosting by Heart Internet, vBulletin © 2000-2009 Jelsoft Enterprises Limited.
Search Engine Optimization by vBSEO 3.0.0 RC8
Web Hosting by Heart Internet