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

Help w/ Linking to SOUND CLIPS???

Status
Not open for further replies.

aries2

Technical User
Oct 28, 2003
33
US
Hello,
I'm building a website in Frontpage for a band. I want people to be able to click a link on a page and listen to a sound clip. How can this be done in FP? Also, how much space would this take up?
Thanks for your help!
 
Here is one code that I use:
<object id=&quot;MediaPlayer&quot; width=320 height=286
classid=&quot;CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95&quot;
standby=&quot;Loading Microsoft® Windows® Media Player components...&quot;
type=&quot;application/x-oleobject&quot;
codebase=&quot;<PARAM NAME=&quot;filename&quot; VALUE=&quot;interview_fox_video.asx&quot;>
<PARAM NAME=&quot;autoStart&quot; VALUE=&quot;true&quot;> <PARAM NAME=&quot;showControls&quot; VALUE=&quot;true&quot;>
<param name=&quot;ShowStatusBar&quot; value=&quot;true&quot;> <PARAM NAME=&quot;Autorewind&quot; VALUE=&quot;true&quot;>
<PARAM NAME=&quot;ShowDisplay&quot; VALUE=&quot;false&quot;>
<EMBED SRC=&quot;interview_fox_video.asx&quot; WIDTH=320 HEIGHT=286 type=&quot;application/x-mplayer2&quot; name=MediaPlayer autostart=1 showcontrols=0 showstatusbar=1 autorewind=1 showdisplay=0>
</EMBED></OBJECT>

Change the source (interview_fox_video.asx) to the path of your audio clip.

Another I use:
<head>
<script language=&quot;Javascript&quot;>
var L_LAUNCHSAP_TEXT = &quot;Launch stand-alone Windows Media Player&quot;;
var g_bNetscape = ( -1 != navigator.appName.indexOf( &quot;Netscape&quot; ) );

<!--
if ( navigator.appName == &quot;Netscape&quot; )
{ //-- This next line ensures that any plugins just installed are updated in the Browser
//-- without quitting the browser.
navigator.plugins.refresh();
// We don't need the APPLET within IE
// ***Please note that if you do not need to script events, you can safely remove the next two lines
document.write(&quot;\x3C&quot; + &quot;applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class&quot;)
document.writeln(&quot; width=5 height=5 name=appObs\x3E \x3C/applet\x3E&quot;)
} //-->
</script>
</head>
<body>
<script language=&quot;Javascript&quot;>
if( g_bNetscape )
{
document.writeln( &quot;<APPLET mayscript code=WMPNS.WMP name=WMP1 width=180 height=192 MAYSCRIPT >&quot; );
}
</script>
<p align=&quot;center&quot;>
<OBJECT CLASSID=&quot;clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6&quot; ID=&quot;WMP&quot; width=&quot;178&quot; height=&quot;30&quot;>
<PARAM NAME=&quot;Name&quot; VALUE=&quot;WMP1&quot;>
<PARAM NAME=&quot;URL&quot; VALUE=&quot;interview_fox_video.asx&quot;>
<PARAM NAME=&quot;autoStart&quot; VALUE=&quot;false&quot;>
<PARAM NAME=&quot;showControls&quot; VALUE=&quot;true&quot;>
</OBJECT>
</APPLET>

Once again, change the source (interview_fox_video.asx) to the correct path of your audio file.

As far as space - how large are your files? Audio files are all different.

__________________________
Corey

 
thanks for the info! some more questions though...when I order the web site, do I need any special features or anything to make the sound clips work? also, is there a simpler way other than the html way to link to sound clips? Is it just like linking to a regular file? (sorry...I'm verry rusty!)
Thanks!!!
 
For the above - no. It will run on both UNIX / Microsoft. Check with the hosting company to make sure they support the specific files that you are going to be uploading.

You can create a direct link as well. Depending on the user's set up - it might open Quicktime or Windows Media Player. The above shows you how to embed Windows Media Player into a web page

__________________________
Corey

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top