/    Sign up×
Community /Pin to ProfileBookmark

sound on a:hover

possible???
would it be something like:

a:hover {sound:url(sound.mp3);}

thanks

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@StefanDec 17.2002 — This is the section in the CSS spec you are looking for ?

http://www.w3.org/TR/REC-CSS2/aural.html
Copy linkTweet thisAlerts:
@jpmoriartyDec 18.2002 — surely though you need a screen reader for that? I think he just wants something that makes a noise when you hover over a link
Copy linkTweet thisAlerts:
@alcodesDec 19.2002 — Dont thinks its possible in CSS, try Javascript:

<form>

<bgsound src="" id="sound">

<a href="Link.html" OnMouseOver="sound.src='SOUND.mp3'">aaa</a>

Also, Document.all.sound.src Might also work
Copy linkTweet thisAlerts:
@King_PellinoreDec 20.2002 — How about including a DIVison and changing it's innerHTML through JavaScript to an OBJECT, which would make browser play a sound. Or maybe an inline frame? Would be pretty slow. Like 45 seconds later... "ding". User: wtf?
×

Success!

Help @minulescu spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...