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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sound files

Status
Not open for further replies.

Benluke

Technical User
Apr 2, 2004
112
GB
Hi, have been asked to put up some sound files onto a site i am building. never done this before can anyone point me in the right direction.

thanks

ben
 
do you want them to open in mediaplayer or something when you click onthem?


Gary
 
Use something like this:

Code:
<a href="FILENAME.WMV" style="text-decoration: none"><font color="#282484">
<span style="font-size: 10px">03...Gary - Alexander Keith Commercial</span></font></a><font color="#282484">

Of course you can change/remove some/all of the formatting as necessary

Gary
 
I have a related question:
How does one embed sound in a page, without depending on user action?

i.e. when a page loads, one hears a song (of course, not violating copyright laws).

and further, how can one provide a method of stopping the sound?

(i.e. have 'Audio Off / Audio On' type links)

[cheers]
Cheers!
Laura
 
well....try this link:


it allows you to play with the code a bit

as for links to turn the sound on and off, there are several ways to do that....you could have two of the same pages, one with music and one without, and have the links direct to the appropriate streams.

alternatively, you can use javascript to alter the code of your html page based on what the user selects.

i have developed a little theatre in my media page where a user has a lot of choice....


you can view the code by clicking 'view source' in your browser. mine uses javascript to chage the stream and code depending on what the user chooses

Gary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top