A sample of HTML code to play music
[ 2005-01-12 13:33:07 | Author: liuhuan ]
Here is the sample:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0039)http://yyanlan.nease.net/mid_1/bmg/bgm.htm --><HTML><HEAD><TITLE>古典吉它名曲</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><!--BGM Script Includes-->
<SCRIPT language=javascript src="musicbj1files/bgm_system.js">
</SCRIPT>
<SCRIPT language=Javascript>
//选择歌曲播放形式
//0 ->按照歌曲排列顺序播放
//1 ->随机播放
var playMode = 0;
//每首歌之间的休息时间(秒)
var restLength = 2;
//是否显示歌曲名称
var showTitle = 1;
//是否歌曲一载入就自动播放
var doFirstPlay = 1;
//以下是连接歌曲URL语法(可增加/减少,但每首歌的播放时间数字一定不能相同)
//歌曲类型最好是WMA MIDI & ASF!
//addbgm('歌曲连接位置', '歌手-歌曲名称', 播放时间数字[以秒为单位]);
//(例如) addbgm('http://www.server.com/folder/file.wma','Artist - Title',123);
addbgm('lsdyy.mp3','蓝色的忧郁',325);
addbgm('csq.mp3','沉思曲',315);
addbgm('card.mp3','查尔斯匈牙利舞曲',276);
addbgm('tct.mp3','泪的托卡塔',165);
addbgm('return.wma','return of the butterfly',200);
addbgm('lvtu.wma','旅途',190);
addbgm('moring.wma','清晨',192);
</SCRIPT>
<!--End script--><!--BODY 里的 OnLoad="init_bgm()" 为程式语法之一, 请勿删除哦!--></HEAD>
<BODY text=#6794bc bgColor=#ffffff leftMargin=0 topMargin=0 onload=init_bgm()
marginwidth="0" marginheight="0"><!--BGM Script BODY Start-->
<STYLE>BODY {
SCROLLBAR-FACE-COLOR: #ffffff; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #ffffff; SCROLLBAR-DARKSHADOW-COLOR: #ffffff; SCROLLBAR-BASE-COLOR: #ffffff
}
</STYLE>
<FORM name=form1><!--以下语法最好不要修改--><img src="../../tupian/yuanjian/yj18.gif" width="7" height="7">
<OBJECT id=Music style="LEFT: 0px; TOP: 0px" height=1 hspace=1 width=1
align=middle vspace=1 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95><PARAM NAME="AllowChangeDisplaySize" VALUE="true"><PARAM NAME="AllowScan" VALUE="true"><PARAM NAME="AnimationAtStart" VALUE="true"><PARAM NAME="AudioStream" VALUE="-1"><PARAM NAME="AutoRewind" VALUE="true"><PARAM NAME="AutoSize" VALUE="false"><PARAM NAME="AutoStart" VALUE="true"><PARAM NAME="Balance" VALUE="0"><PARAM NAME="BufferingTime" VALUE="5"><PARAM NAME="ClickToPlay" VALUE="true"><PARAM NAME="CurrentMarker" VALUE="0"><PARAM NAME="CurrentPosition" VALUE="-1"><PARAM NAME="CursorType" VALUE="0"><PARAM NAME="DisplayBackColor" VALUE="0"><PARAM NAME="DisplayForeColor" VALUE="16777215"><PARAM NAME="DisplayMode" VALUE="0"><PARAM NAME="DisplaySize" VALUE="2"><PARAM NAME="EnableContextMenu" VALUE="true"><PARAM NAME="Enabled" VALUE="true"><PARAM NAME="EnableFullScreenControls" VALUE="false"><PARAM NAME="EnablePositionControls" VALUE="true"><PARAM NAME="EnableTracker" VALUE="true"><PARAM NAME="InvokeURLs" VALUE="true"><PARAM NAME="Language" VALUE="-1"><PARAM NAME="Mute" VALUE="false"><PARAM NAME="PlayCount" VALUE="1"><PARAM NAME="PreviewMode" VALUE="false"><PARAM NAME="Rate" VALUE="1"><PARAM NAME="SelectionEnd" VALUE="-1"><PARAM NAME="SelectionStart" VALUE="-1"><PARAM NAME="SendErrorEvents" VALUE="true"><PARAM NAME="SendKeyboardEvents" VALUE="false"><PARAM NAME="SendMouseClickEvents" VALUE="true"><PARAM NAME="SendMouseMoveEvents" VALUE="false"><PARAM NAME="SendOpenStateChangeEvents" VALUE="true"><PARAM NAME="SendPlayStateChangeEvents" VALUE="true"><PARAM NAME="SendWarningEvents" VALUE="true"><PARAM NAME="ShowAudioControls" VALUE="true"><PARAM NAME="ShowCaptioning" VALUE="false"><PARAM NAME="ShowControls" VALUE="true"><PARAM NAME="ShowDisplay" VALUE="false"><PARAM NAME="ShowGotoBar" VALUE="false"><PARAM NAME="ShowPositionControls" VALUE="true"><PARAM NAME="ShowStatusBar" VALUE="true"><PARAM NAME="ShowTracker" VALUE="true"><PARAM NAME="TransparentAtStart" VALUE="false"><PARAM NAME="VideoBorder3D" VALUE="true"><PARAM NAME="VideoBorderColor" VALUE="0"><PARAM NAME="VideoBorderWidth" VALUE="0"><PARAM NAME="Volume" VALUE="2000"><PARAM NAME="WindowlessVideo" VALUE="false"></OBJECT><INPUT
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 8pt; BORDER-BOTTOM-WIDTH: 0px; COLOR: #b2b2b2; FONT-FAMILY: Arial; BORDER-RIGHT-WIDTH: 0px"
readOnly size=18 value=歌曲下载中... name=stitle> <A
onmouseover="window.status=('Previous Track'); return true;" onclick=preTrack();
onmouseout="window.status=(''); return true;"
href="musicbj1.htm#"><IMG height=13 alt=上一首
src="musicbj1files/forward.gif" width=13 align=middle border=0></A> <A
onmouseover="window.status=('Stop BGM'); return true;" onclick=stopTrack();
onmouseout="window.status=(''); return true;"
href="musicbj1.htm#"><IMG height=13 alt=暂停
src="musicbj1files/stop.gif" width=13 align=middle border=0></A> <A
onmouseover="window.status=('Play BGM'); return true;" onclick=play();
onmouseout="window.status=(''); return true;"
href="musicbj1.htm#"><IMG height=13 alt=播放
src="musicbj1files/play.gif" width=13 align=middle border=0></A> <A
onmouseover="window.status=('Next Track'); return true;" onclick=nextTrack();
onmouseout="window.status=(''); return true;"
href="musicbj1.htm#"><IMG height=13 alt=下一首
src="musicbj1files/backward.gif" width=13 align=middle border=0></A> </FORM><!--BGM Script BODY End--></BODY></HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0039)http://yyanlan.nease.net/mid_1/bmg/bgm.htm --><HTML><HEAD><TITLE>古典吉它名曲</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><!--BGM Script Includes-->
<SCRIPT language=javascript src="musicbj1files/bgm_system.js">
</SCRIPT>
<SCRIPT language=Javascript>
//选择歌曲播放形式
//0 ->按照歌曲排列顺序播放
//1 ->随机播放
var playMode = 0;
//每首歌之间的休息时间(秒)
var restLength = 2;
//是否显示歌曲名称
var showTitle = 1;
//是否歌曲一载入就自动播放
var doFirstPlay = 1;
//以下是连接歌曲URL语法(可增加/减少,但每首歌的播放时间数字一定不能相同)
//歌曲类型最好是WMA MIDI & ASF!
//addbgm('歌曲连接位置', '歌手-歌曲名称', 播放时间数字[以秒为单位]);
//(例如) addbgm('http://www.server.com/folder/file.wma','Artist - Title',123);
addbgm('lsdyy.mp3','蓝色的忧郁',325);
addbgm('csq.mp3','沉思曲',315);
addbgm('card.mp3','查尔斯匈牙利舞曲',276);
addbgm('tct.mp3','泪的托卡塔',165);
addbgm('return.wma','return of the butterfly',200);
addbgm('lvtu.wma','旅途',190);
addbgm('moring.wma','清晨',192);
</SCRIPT>
<!--End script--><!--BODY 里的 OnLoad="init_bgm()" 为程式语法之一, 请勿删除哦!--></HEAD>
<BODY text=#6794bc bgColor=#ffffff leftMargin=0 topMargin=0 onload=init_bgm()
marginwidth="0" marginheight="0"><!--BGM Script BODY Start-->
<STYLE>BODY {
SCROLLBAR-FACE-COLOR: #ffffff; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #ffffff; SCROLLBAR-DARKSHADOW-COLOR: #ffffff; SCROLLBAR-BASE-COLOR: #ffffff
}
</STYLE>
<FORM name=form1><!--以下语法最好不要修改--><img src="../../tupian/yuanjian/yj18.gif" width="7" height="7">
<OBJECT id=Music style="LEFT: 0px; TOP: 0px" height=1 hspace=1 width=1
align=middle vspace=1 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95><PARAM NAME="AllowChangeDisplaySize" VALUE="true"><PARAM NAME="AllowScan" VALUE="true"><PARAM NAME="AnimationAtStart" VALUE="true"><PARAM NAME="AudioStream" VALUE="-1"><PARAM NAME="AutoRewind" VALUE="true"><PARAM NAME="AutoSize" VALUE="false"><PARAM NAME="AutoStart" VALUE="true"><PARAM NAME="Balance" VALUE="0"><PARAM NAME="BufferingTime" VALUE="5"><PARAM NAME="ClickToPlay" VALUE="true"><PARAM NAME="CurrentMarker" VALUE="0"><PARAM NAME="CurrentPosition" VALUE="-1"><PARAM NAME="CursorType" VALUE="0"><PARAM NAME="DisplayBackColor" VALUE="0"><PARAM NAME="DisplayForeColor" VALUE="16777215"><PARAM NAME="DisplayMode" VALUE="0"><PARAM NAME="DisplaySize" VALUE="2"><PARAM NAME="EnableContextMenu" VALUE="true"><PARAM NAME="Enabled" VALUE="true"><PARAM NAME="EnableFullScreenControls" VALUE="false"><PARAM NAME="EnablePositionControls" VALUE="true"><PARAM NAME="EnableTracker" VALUE="true"><PARAM NAME="InvokeURLs" VALUE="true"><PARAM NAME="Language" VALUE="-1"><PARAM NAME="Mute" VALUE="false"><PARAM NAME="PlayCount" VALUE="1"><PARAM NAME="PreviewMode" VALUE="false"><PARAM NAME="Rate" VALUE="1"><PARAM NAME="SelectionEnd" VALUE="-1"><PARAM NAME="SelectionStart" VALUE="-1"><PARAM NAME="SendErrorEvents" VALUE="true"><PARAM NAME="SendKeyboardEvents" VALUE="false"><PARAM NAME="SendMouseClickEvents" VALUE="true"><PARAM NAME="SendMouseMoveEvents" VALUE="false"><PARAM NAME="SendOpenStateChangeEvents" VALUE="true"><PARAM NAME="SendPlayStateChangeEvents" VALUE="true"><PARAM NAME="SendWarningEvents" VALUE="true"><PARAM NAME="ShowAudioControls" VALUE="true"><PARAM NAME="ShowCaptioning" VALUE="false"><PARAM NAME="ShowControls" VALUE="true"><PARAM NAME="ShowDisplay" VALUE="false"><PARAM NAME="ShowGotoBar" VALUE="false"><PARAM NAME="ShowPositionControls" VALUE="true"><PARAM NAME="ShowStatusBar" VALUE="true"><PARAM NAME="ShowTracker" VALUE="true"><PARAM NAME="TransparentAtStart" VALUE="false"><PARAM NAME="VideoBorder3D" VALUE="true"><PARAM NAME="VideoBorderColor" VALUE="0"><PARAM NAME="VideoBorderWidth" VALUE="0"><PARAM NAME="Volume" VALUE="2000"><PARAM NAME="WindowlessVideo" VALUE="false"></OBJECT><INPUT
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 8pt; BORDER-BOTTOM-WIDTH: 0px; COLOR: #b2b2b2; FONT-FAMILY: Arial; BORDER-RIGHT-WIDTH: 0px"
readOnly size=18 value=歌曲下载中... name=stitle> <A
onmouseover="window.status=('Previous Track'); return true;" onclick=preTrack();
onmouseout="window.status=(''); return true;"
href="musicbj1.htm#"><IMG height=13 alt=上一首
src="musicbj1files/forward.gif" width=13 align=middle border=0></A> <A
onmouseover="window.status=('Stop BGM'); return true;" onclick=stopTrack();
onmouseout="window.status=(''); return true;"
href="musicbj1.htm#"><IMG height=13 alt=暂停
src="musicbj1files/stop.gif" width=13 align=middle border=0></A> <A
onmouseover="window.status=('Play BGM'); return true;" onclick=play();
onmouseout="window.status=(''); return true;"
href="musicbj1.htm#"><IMG height=13 alt=播放
src="musicbj1files/play.gif" width=13 align=middle border=0></A> <A
onmouseover="window.status=('Next Track'); return true;" onclick=nextTrack();
onmouseout="window.status=(''); return true;"
href="musicbj1.htm#"><IMG height=13 alt=下一首
src="musicbj1files/backward.gif" width=13 align=middle border=0></A> </FORM><!--BGM Script BODY End--></BODY></HTML>
Comments Feed: http://www.liuhuan.com/blog/feed.asp?q=comment&id=35
There is no comment on this article.
You can't post comment on this article.