Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

prevent player appearing when clicking an audio link.

Status
Not open for further replies.

UncleScooby

Programmer
Jun 1, 2001
30
GB

I have the following simple link:

<a href = &quot;c:\windows\media\rcs.wav&quot;> Sound byte </a>

Can I stop the player popping up when I click the link ?

On my PC it opens another frame in the browser at the left of the screen as if I'd clicked on the MEDIA icon in IE6
I understand it may try and open a different player on different persons pc but how do I stop it ?

Any help appreciated,

Uncle S.
 
For what reason are you trying to prevent the player from opening? If you want to allow the user to download the file, you would have to put the file into a zip file.
 

Thanks GZ,

I have a nice looking web page (if I say it myself) and a simple audio link, all I want to happen is for the user to hear the .wav when they click on the link, not some player popping up and covering part of my page.
Thanks,

UncleS
 
Include a blank bgsound tab in your page ie:
Code:
<bgsound id=&quot;mysound1&quot; src=&quot;#&quot; loop=&quot;1&quot;>

Then set the src property using script in your links:
Code:
<a href=&quot;javascript:document.getElementById('mysound1').src='mysound1.wav'&quot;>play mysound1.wav</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top