HTML Script for Sound Files - DFWstangs Forums
 
LinkBack Thread Tools Display Modes
post #1 of 4 (permalink) Old 03-09-2004, 12:19 AM Thread Starter
BELIEVE, IT'S TIME!!!!
 
Who Needs 8's Avatar
 
Join Date: Mar 2001
Location: A little here, a little there . . .
Posts: 14,997
HTML Script for Sound Files

I want to have a plug in for an mp3 player on a web page. What's the best script for this?
Who Needs 8 is offline  
Sponsored Links
Advertisement
 
post #2 of 4 (permalink) Old 03-09-2004, 12:47 AM
Time Served
 
Join Date: May 2003
Location: sherman
Posts: 791
you can use the < BGSOUND > tag. When a user loads the page using IE, the sound file plays. Browsers that do not support the tag will ignore it, but they should not crash or hang. Here is an example to help you out.

src="url" "filename"
loop=n
volume=n>

the name of the sound file must be WAV, AU, or MIDI format though. So if i wanted to use a .wav file to play on my page and i had a sound file named say "welcome.wav" i could use this line:

< BGSOUND src="welcome.wav" >

email me if you need any further help or suggestions
rray is offline  
post #3 of 4 (permalink) Old 03-09-2004, 11:27 AM
98 SVT Cobra
 
MoonDog's Avatar
 
Join Date: Sep 2002
Location: Central IL
Posts: 5,109
A better one I think is the EMBED tag.

<EMBED src="http://whatever.mp3" loop=false ShowControls=true></EMBED>

LOOP can be either TRUE or FALSE depending on if you want it to continuously play or not.

SHOWCONTROLS can be either TRUE or FALSE depending if you want your visitors to stop or start the sound.

Last edited by MoonDog; 03-09-2004 at 11:36 AM.
MoonDog is offline  
 
post #4 of 4 (permalink) Old 03-09-2004, 01:47 PM Thread Starter
BELIEVE, IT'S TIME!!!!
 
Who Needs 8's Avatar
 
Join Date: Mar 2001
Location: A little here, a little there . . .
Posts: 14,997
that worked perfect MoonDog, thanks
Who Needs 8 is offline  
Sponsored Links
Advertisement
 
Reply

Bookmarks

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the DFWstangs Forums forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode



Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome