473,748 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Play a sound when clicking a hyperlink?

Hi, is there a way to play a small sound snippet when a user clicks a
certain hyperlink hotspot on an image?

Thanks in advance.
Mar 17 '06 #1
16 2952
In article <w3************ *****@text.news .blueyonder.co. uk>,
"Chris Ianson" <no***@hotmail. com> wrote:
Hi, is there a way to play a small sound snippet when a user clicks a
certain hyperlink hotspot on an image?

Thanks in advance.


You mean like the first long chord from a Jimi Hendrix's Star
Spangle maybe?

--
dorayme
Mar 18 '06 #2
With neither quill nor qualm, Chris Ianson quothed:
Hi, is there a way to play a small sound snippet when a user clicks a
certain hyperlink hotspot on an image?


Image Map and Object, but will the visitor hear it if he/she browses
with sound off as I suspect many do?

--
Neredbojias
Contrary to popular belief, it is believable.
Mar 18 '06 #3
Chris Ianson said the following on 3/17/2006 5:51 PM:
Hi, is there a way to play a small sound snippet when a user clicks a
certain hyperlink hotspot on an image?


My browser makes a clicking noise already when I click links. It's the
way *I* want it - not you.

But, trying to play a sound on a PC without speakers should be an
entertaining project.

The answer is no. Well, not in the groups you posted to anyway.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 18 '06 #4
In article <MP************ ************@ne ws.isp.com>,
Neredbojias <in*****@neredb ojias.com> wrote:
will the visitor hear it if he/she browses
with sound off


If it is _very_ loud, of course, he/she will....

--
dorayme
Mar 18 '06 #5
With neither quill nor qualm, dorayme quothed:
In article <MP************ ************@ne ws.isp.com>,
Neredbojias <in*****@neredb ojias.com> wrote:
will the visitor hear it if he/she browses
with sound off


If it is _very_ loud, of course, he/she will....


If it is very loud, it has to occur. Since it can't occur, it can't be
loud. My opinion of Martian intelligence has plummeted lately.

--
Neredbojias
Contrary to popular belief, it is believable.
Mar 18 '06 #6
"Sid Ismail" <el***@nospam.c o.za> wrote in message
news:gs******** *************** *********@4ax.c om...
I also don't like it.

Search Google for "playing sound while surfing".


Perhaps you can all help me add a 'sounds on/off' button to my page then
also. :)

What I'd like is a constant looping background MP3 (it will just be quiet
'street noise'), and a specific sound when they click any hyperlink, but
that option to turn sounds on/off.

Anyone here got the know-how?

Thanks in advance.
Mar 18 '06 #7
In article <MP************ ************@ne ws.isp.com>,
Neredbojias <in*****@neredb ojias.com> wrote:
With neither quill nor qualm, dorayme quothed:
In article <MP************ ************@ne ws.isp.com>,
Neredbojias <in*****@neredb ojias.com> wrote:
will the visitor hear it if he/she browses
with sound off


If it is _very_ loud, of course, he/she will....


If it is very loud, it has to occur. Since it can't occur, it can't be
loud. My opinion of Martian intelligence has plummeted lately.


Boji, you have been badly affected by being in BdeZ's killfile.
Try to imagine a sound that is so loud that it breaks all logical
barriers and just roll about the floor in paroxysms of laughter
at this instead of casting aspersions on Martian intelligence.

Look, I know it will be bad when you meet Officer Bud White. I
know it is troubling you. But it will not be the end of the world
and you will emerge a better and stronger man.

And, btw, don't stir up that "mad hatter" crowd, a few of their
threads have (after a long absence) started appearing, complete
with foul language, on my newsreader.

--
dorayme
Mar 19 '06 #8
With neither quill nor qualm, dorayme quothed:
In article <MP************ ************@ne ws.isp.com>,
Neredbojias <in*****@neredb ojias.com> wrote:
With neither quill nor qualm, dorayme quothed:
In article <MP************ ************@ne ws.isp.com>,
Neredbojias <in*****@neredb ojias.com> wrote:

> will the visitor hear it if he/she browses
> with sound off

If it is _very_ loud, of course, he/she will....
If it is very loud, it has to occur. Since it can't occur, it can't be
loud. My opinion of Martian intelligence has plummeted lately.


Boji, you have been badly affected by being in BdeZ's killfile.
Try to imagine a sound that is so loud that it breaks all logical
barriers and just roll about the floor in paroxysms of laughter
at this instead of casting aspersions on Martian intelligence.


BdeZ's killfile is like the Devil's Island of the Information Highway.
You can't imagine the depths of depravity and insouciance suffered by
denizens of that digital deep. Oh...what am I talking about? You're
there, too. That explains it.
Look, I know it will be bad when you meet Officer Bud White. I
know it is troubling you. But it will not be the end of the world
and you will emerge a better and stronger man.

And, btw, don't stir up that "mad hatter" crowd, a few of their
threads have (after a long absence) started appearing, complete
with foul language, on my newsreader.


I don't view them as a crowd, I view each as an individual with a unique
persona and responsible for his/her own commentary just as anyone would
be. Casually categorizing people into groups leads to discrimination
which I have found that Australians in particular are far from free of.

--
Neredbojias
Contrary to popular belief, it is believable.
Mar 19 '06 #9
Hello,

I don't know what I'm talking about, but might wrapping some text with
nested links work, one for the web page and one for the sound? Lacking
that, you could use a Javascript onClick() event handler to redirect
them after clicking the link, but you'd be dependent on them having
Jscript turned on (which 95% of people do anyway).

Mar 19 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2132
by: Larry L | last post by:
I want to play a repetitive sound, and have a user click on a button each time it plays (say 5-10 times) and measure how far off he is from the sound each time. The only way I know to play a sound in JS is bgsound, and I know how to loop and pause, so as to do the 1st part. I haven't figured out how to then test the delay in response. Since some of the responses may also be *before* the sound plays by some milliseconds, that also...
1
4299
by: Ron Provost | last post by:
Hello, I'm developing a piece of software to assist illiteraate adults to learn to read. I'm trying to figure out how, if possible, to make audio playback asynchrnous but still controllable. I'm using python 2.4 with pymedia on XP. I started out with the example in the tutorials section of the pymedia website. The pymedia docs imply to me that playback using Output's play() method should already be asynchronous and controllable. I...
0
1953
by: MLH | last post by:
Edit, Insert Object & choose Wave Object, the following OLE object thing gets inserted onto the form... Microsoft Sound Recorder Version 5.1 (Build 2600.xpsp2.030422-1633: Service Pack 1) Copyright 1981-2001 Microsoft Corporation PCM 22.050 kHz, 8 Bit, Mono If I double-click the icon-looking thing on the form after setting its .Enabled property to true AND its .Verb property to -2, the Microsoft
1
8006
by: Lam | last post by:
how can I play sound file in a .aspx page written in C#? I try to use the code like the following. But whenI call the play function play("sound.wav", this.SND_ASYNC) my computer give out "be" sound instead playing the file (same code works fine in a windows application written in c# , that mean there is nothing wrong with my sound card.) thanks ----------------------------------------------------------------------------...
3
10640
by: Jared | last post by:
I'm using the first code sample below to play WAV files stored as embedded resources. For some reason I *occasionally* get scratching and crackling. I'm using a couple WAVs that ship with Windows, and they play fine outside of my app. This code works, but has the random "scratching" problem: private static void PlayResource(string audioRes) { // Get the resource into a stream
9
5608
by: Morris Neuman | last post by:
Im working with VS 2005 and trying to use a Hyperlink field in a datagrid to play a wave file that is not located in the website folders but is in a plain folder on the same machine, windows 2003 server, WMP 10.0 . If I type the full path in an IE address field it plays the file in WMP When I test my Web page ( running the debugger in VS.) The datagrid has a column called "MsgFile" with the full path to the wave file e.g....
9
3599
by: ZikO | last post by:
Hi. I'm struggle with playing a wav in Visual Basic. First I wanted to use My.Computer.Audio.Play() method but I realized it's not working if I want to have music in background. I found in internet SoundPlayer Class but unfortunately I can't find it in my Visual Studio Application. Whenever I try to use it Dim Player New SoundPlayer ...
26
3902
by: Jake Barnes | last post by:
I did a search on the newsgroup comp.lang.javascript. I was searching for "how to play a sound with Javascript". I'm somewhat suprised that the majority of entries are from the 1990s, and there are almost no posts from the last 3 years: http://groups.google.com/group/comp.lang.javascript/search?group=comp.lang.javascript&q=how+to+play+a+sound+with+Javascript&qt_g=Search+this+group Even after sorting by date, there don't appear any...
8
14943
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to cut and paste code that MSDN recommends for playing a simple wav file from inside an embedded file, like presumeably the 'resources' file .resx is. I want to embed the .wav file in a 'resource file' since I don't want the user storing the file on...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9378
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6798
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6077
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2216
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.