LET's ADD SOME
MUSIC !
Now we need some music on our sites
and in our stationery.......
here are a few samples of the script
bits you will need to use
and where
to put them in the script. Below you will find several
examples to choose from. The
actual tag is hightlighted in the teal
color, and what you need to change
in red. There are some asf files
in the files section of our group at
Yahoo for you to use and enjoy.
Some of them are of NormaJean
playing the piano and she has
consented for all to use
them.
Basic music tag for a
stationery:
<BGSOUND style="DISPLAY: none"
balance=0 src="C:/Program Files/Common
Files/
Microsoft Shared/Stationery/music file name.mid"
volume=0
loop=infinite>
You can change the file type if
using wave files to .wav
Or on your
webpage:
<BGSOUND style="DISPLAY: none"
balance=0 src="music\music file
name.mid"
volume=0
loop=infinite>
You can change the file type if
using a wave file to .wav -
and you can change the
infinite used here to any number from 1-99 ) to limit how many times the
music file will play.
You can use two of these tags
together and have a midi play with a wave sound. However, it
is important, when using two files that you do not use the same
file types.
you can combine a midi and
wave file like this.....
<BGSOUND balance=0
src="Stationery pathway or Web pathway\music
file.mid"
style="DISPLAY: none"
volume=0 loop=infinite>
<BGSOUND balance=0 src="Stationery
pathway or Web pathway\music
file.wav"
style="DISPLAY: none" volume=0 loop=3>
You can also change the infinite
used in either tag to any
number from 1-99 to specify how many
times you want each of them to play.
*********************************************************
Another choice is....the embedded
code:
This embedded code can be used for
stationery or for webpages. You will notice that you need to
enter the name of the music file in twice. The filenames must
match.
To play only once......
<EMBED SRC="music/music file name.wav" AUTOSTART="TRUE"
HIDDEN="TRUE"
LOOP="TRUE"><NOEMBED> <BGSOUND SRC="music/music
file.wav" ></NOEMBED>
Or to play
infinitely......
<EMBED SRC="music/music file.wav" AUTOSTART="TRUE"
HIDDEN="TRUE" LOOP="TRUE">
<NOEMBED> <BGSOUND
SRC="music/music file.wav"
LOOP="INFINITE"> </NOEMBED>
Another, simpler code for embedding
the sound.....
<P
ALIGN=Center>
<embed src="e.wav" WIDTH="145" HEIGHT="60"
AUTOSTART="TRUE" LOOP="FALSE"></P>
*********************************************************
You will see a player image like
this one come up
on the page allowing the
viewer to rewind or stop play,
and you can include
instructions briefly with the player.....
as i did
here.
You would place this tag before the
closing </BODY>
tag in your script. That way
it will be at the bottom....
you may want to put a <BR> or
two before it to
keep it down and away from your
stationery....
<BR>
<BR>
<P ALIGN=Center>Music
can be turned off here if you would like. . . </P>
<P
ALIGN=Center> <embed src="music/music file.mid" WIDTH="145"
HEIGHT="60"
AUTOSTART="TRUE" LOOP="FALSE"></P>
</BODY>
You can also use align=left or
align=right
here as
well depending on where you want it to
be visible on the
page.
*********************************************************
And lastly, there is the object
code:
This code is usually reserved for use when you
have a rather large file that you want to stream from a website.
An asf file, wma file or wav file will work well with these. In
stationery, the files are stored on a website and
then download from the website into the viewer's temporary internet
files instead of the traditional way of using a small midi file that
would embed or attach itself to the stationery.
These files are greatly preferred, as they have words
and music. You can use this on either a stationery or a
webpage. I suggest putting the code in your script just before the
closing body tag.
Normally, there will be an image of the player at
the bottom of the page another image when the page loads that will soon
disappear. You can change the size of the player's width and
height to as small as "0" so that you won't see it at all while the
file is playing. The code is rather large, but the only
parameter you need to concern yourself with is the filename
parameter. There are several object codes that you can
use. Choose the one that is right for you. Not everyone can
hear every code. For stationery you would use the
entire web pathway, on your webpage, however it is
only necessary to use the folder where you
are keeping the music and the name of the asf file you want
to use.
"http://your website pathway/music/name of
file.asf"
<OBJECT id=Player
height=34 width=134
classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95><PARAM
NAME="AudioStream" VALUE="-1"><PARAM NAME="AutoSize"
VALUE="0"><PARAM NAME="AutoStart" VALUE="-1"><PARAM
NAME="AnimationAtStart" VALUE="-1"><PARAM NAME="AllowScan"
VALUE="-1"><PARAM NAME="AllowChangeDisplaySize"
VALUE="-1"><PARAM NAME="AutoRewind" VALUE="0"><PARAM
NAME="Balance" VALUE="0"><PARAM NAME="BaseURL"
VALUE=""><PARAM NAME="BufferingTime" VALUE="5"><PARAM
NAME="CaptioningID" VALUE=""><PARAM NAME="ClickToPlay"
VALUE="0"><PARAM NAME="CursorType" VALUE="0"><PARAM
NAME="CurrentPosition" VALUE="-1"><PARAM NAME="CurrentMarker"
VALUE="0"><PARAM NAME="DefaultFrame" VALUE=""><PARAM
NAME="DisplayBackColor" VALUE="589976"><PARAM
NAME="DisplayForeColor" VALUE="9377536"><PARAM NAME="DisplayMode"
VALUE="0"><PARAM NAME="DisplaySize" VALUE="5"><PARAM
NAME="Enabled" VALUE="-1"><PARAM NAME="EnableContextMenu"
VALUE="-1"><PARAM NAME="EnablePositionControls"
VALUE="0"><PARAM NAME="EnableFullScreenControls"
VALUE="0"><PARAM NAME="EnableTracker" VALUE="0"><PARAM
NAME="Filename" VALUE="http://your web addy/music/name of music file.asf"><PARAM
NAME="InvokeURLs" VALUE="-1"><PARAM NAME="Language"
VALUE="-1"><PARAM NAME="Mute" VALUE="0"><PARAM
NAME="PlayCount" VALUE="99"><PARAM NAME="PreviewMode"
VALUE="0"><PARAM NAME="Rate" VALUE="1"><PARAM
NAME="SAMILang" VALUE=""><PARAM NAME="SAMIStyle"
VALUE=""><PARAM NAME="SAMIFileName" VALUE=""><PARAM
NAME="SelectionStart" VALUE="-1"><PARAM NAME="SelectionEnd"
VALUE="-1"><PARAM NAME="SendOpenStateChangeEvents"
VALUE="-1"><PARAM NAME="SendWarningEvents" VALUE="-1"><PARAM
NAME="SendErrorEvents" VALUE="-1"><PARAM NAME="SendKeyboardEvents"
VALUE="0"><PARAM NAME="SendMouseClickEvents"
VALUE="0"><PARAM NAME="SendMouseMoveEvents" VALUE="0"><PARAM
NAME="SendPlayStateChangeEvents" VALUE="-1"><PARAM
NAME="ShowCaptioning" VALUE="0"><PARAM NAME="ShowControls"
VALUE="-1"><PARAM NAME="ShowAudioControls" VALUE="-1"><PARAM
NAME="ShowDisplay" VALUE="0"><PARAM NAME="ShowGotoBar"
VALUE="0"><PARAM NAME="ShowPositionControls"
VALUE="-1"><PARAM NAME="ShowStatusBar" VALUE="-1"><PARAM
NAME="ShowTracker" VALUE="-1"><PARAM NAME="TransparentAtStart"
VALUE="0"><PARAM NAME="VideoBorderWidth" VALUE="0"><PARAM
NAME="VideoBorderColor" VALUE="0"><PARAM NAME="VideoBorder3D"
VALUE="0"><PARAM NAME="Volume" VALUE="-80"><PARAM
NAME="WindowlessVideo" VALUE="0"></OBJECT>

Another code, a bit shorter than the
other....
<OBJECT id="Net
Show" height=0 width=0 align=center
classid=clsid:2179C5D3-EBFF-11CF-B6FD-00AA00B4E220><PARAM
NAME="AutoStart" VALUE="-1"><PARAM NAME="AnimationAtStart"
VALUE="-1"><PARAM NAME="AllowScan" VALUE="-1"><PARAM
NAME="AllowChangeControlType" VALUE="-1"><PARAM
NAME="AllowChangeDisplaySize" VALUE="-1"><PARAM NAME="AutoRewind"
VALUE="-1"><PARAM NAME="BaseURL" VALUE=""><PARAM
NAME="BufferingTime" VALUE="5"><PARAM NAME="ClickToPlay"
VALUE="-1"><PARAM NAME="ControlType" VALUE="0"><PARAM
NAME="CursorType" VALUE="1"><PARAM NAME="CurrentPosition"
VALUE="0"><PARAM NAME="CurrentMarker" VALUE="0"><PARAM
NAME="DefaultFrame" VALUE="1"><PARAM NAME="DisplaySize"
VALUE="0"><PARAM NAME="EnableContextMenu" VALUE="-1"><PARAM
NAME="Filename" VALUE="http://your web
addy/music/name of music
file.asf"><PARAM NAME="InvokeURLs"
VALUE="-1"><PARAM NAME="PlayCount" VALUE="99"><PARAM
NAME="Rate" VALUE="1"><PARAM NAME="SendOpenStateChangeEvents"
VALUE="-1"><PARAM NAME="SendWarningEvents" VALUE="-1"><PARAM
NAME="SendErrorEvents" VALUE="-1"><PARAM NAME="SendKeyboardEvents"
VALUE="-1"><PARAM NAME="SendMouseClickEvents"
VALUE="-1"><PARAM NAME="SendMouseMoveEvents"
VALUE="-1"><PARAM NAME="SendStateChangeEvents"
VALUE="-1"><PARAM NAME="SendPlayStateChangeEvents"
VALUE="-1"><PARAM NAME="TransparentAtStart"
VALUE="-1"></OBJECT>
And still another....
<OBJECT id=player789
height=0 width=0
classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6>
<PARAM
NAME="URL" VALUE="http://your web addy/music/name of music file.asf"><PARAM
NAME="rate" VALUE="1"><PARAM NAME="balance" VALUE="0"><PARAM
NAME="currentPosition" VALUE="0"><PARAM NAME="defaultFrame"
VALUE=""><PARAM NAME="playCount" VALUE="99"><PARAM
NAME="autoStart" VALUE="-1"><PARAM NAME="currentMarker"
VALUE="0"><PARAM NAME="invokeURLs" VALUE="-1"><PARAM
NAME="baseURL" VALUE=""><PARAM NAME="volume"
VALUE="100"><PARAM NAME="mute" VALUE="0"><PARAM
NAME="uiMode" VALUE="mini"><PARAM NAME="stretchToFit"
VALUE="0"><PARAM NAME="windowlessVideo" VALUE="-1"><PARAM
NAME="enabled" VALUE="-1"><PARAM NAME="enableContextMenu"
VALUE="-1"><PARAM NAME="fullScreen" VALUE="0"><PARAM
NAME="SAMIStyle" VALUE=""><PARAM NAME="SAMILang"
VALUE=""><PARAM NAME="SAMIFilename" VALUE=""><PARAM
NAME="captioningID" VALUE=""></OBJECT>
And still another, this one is an
embed code for an asf....
<EMBED align=center
src="http://your web addy/music/name of music file.asf" width=0 height=0
type=video/x-ms-asf AUTOSTART="TRUE"
LOOP="TRUE" CONTROLLER="TRUE"></EMBED>
Click the link below for more
information about ASF files and how to make them. Thanks to Yvonne
for sending us her favorite link, this is where she learned how to make
them....
*** You can download some ASF files to use,
by clicking on the link for ASF File Sharing,
She has a variety of them there for you to
try.
I hope that you found something of use to you on this
page.
If you have any questions, don't hesitate to ask Karen,
Shari,
one of our moderators, or any
of the other group members for assistance......we will
be glad to help.
If you have any questions or comments, please
drop me a line. I will be glad to
answer any questions you may have.

Karen
Copyright İFebruary,
2002 - All Rights Reserved.