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="MediaPlayer" width=320 height=286
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject"
codebase="
Change the source (interview_fox_video.asx) to the path of your audio clip.
Another I use:
<head>
<script language="Javascript">
var L_LAUNCHSAP_TEXT = "Launch stand-alone Windows Media Player";
var g_bNetscape = ( -1 != navigator.appName.indexOf( "Netscape" ) );
<!--
if ( navigator.appName == "Netscape" )
{ //-- 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("\x3C" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class"
document.writeln(" width=5 height=5 name=appObs\x3E \x3C/applet\x3E"
} //-->
</script>
</head>
<body>
<script language="Javascript">
if( g_bNetscape )
{
document.writeln( "<APPLET mayscript code=WMPNS.WMP name=WMP1 width=180 height=192 MAYSCRIPT >" );
}
</script>
<p align="center">
<OBJECT CLASSID="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" ID="WMP" width="178" height="30">
<PARAM NAME="Name" VALUE="WMP1">
<PARAM NAME="URL" VALUE="interview_fox_video.asx">
<PARAM NAME="autoStart" VALUE="false">
<PARAM NAME="showControls" VALUE="true">
</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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.