!!!怎样写个在线播放音乐的程序,请高手看下!!!

le_yuan 2004-09-17 03:28:37
我想让网页动起来,于是突发奇想,歌的目录是D;/music/独角戏.wnp,我的机子上什么放歌的软件都有,REALONE,WINAMP,media player,谁能写段程序给我在线听歌呀,好期待呀
...全文
96 点赞 收藏 7
写回复
7 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
lry1983 2004-09-18
我也要.jsplee@126.com
谢谢!~
回复
sjtsh 2004-09-18
zdltsh@hotmail.com
别忘了给我发一份
谢谢!!!
回复
hourger 2004-09-18
还有我!
hourger@hotmail.com
回复
zbulrush 2004-09-18
也发个给我吧
sying_lw@hotmail.com
回复
cocohui 2004-09-18
发个JAVABEAN 给我吧。。你这么牛! amjiahe(黄雀)

cocohui2002@163.com
回复
amjiahe 2004-09-18
我有这个的javabean,我发个到你的hotmail吧
回复
zbulrush 2004-09-17
你可以在网页上插入一个多媒体,打开你的歌
下面提供几中方法:

<OBJECT class=OBJECT id=MediaPlayer height=50 width=150 align=middle classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95><PARAM NAME="AudioStream" VALUE="-1"><PARAM NAME="AutoSize" VALUE="0"><PARAM NAME="AutoStart" VALUE="0"><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="-1"><PARAM NAME="CursorType" VALUE="0"><PARAM NAME="CurrentPosition" VALUE="-1"><PARAM NAME="CurrentMarker" VALUE="0"><PARAM NAME="DefaultFrame" VALUE=""><PARAM NAME="DisplayBackColor" VALUE="0"><PARAM NAME="DisplayForeColor" VALUE="16777215"><PARAM NAME="DisplayMode" VALUE="0"><PARAM NAME="DisplaySize" VALUE="4"><PARAM NAME="Enabled" VALUE="-1"><PARAM NAME="EnableContextMenu" VALUE="-1"><PARAM NAME="EnablePositionControls" VALUE="-1"><PARAM NAME="EnableFullScreenControls" VALUE="0"><PARAM NAME="EnableTracker" VALUE="-1">

<PARAM NAME="Filename" VALUE="http://www.cec.zju.edu.cn/goodknight/show/music/loveagain.mp3">
//换成你的歌地址
<PARAM NAME="InvokeURLs" VALUE="-1"><PARAM NAME="Language" VALUE="-1"><PARAM NAME="Mute" VALUE="0"><PARAM NAME="PlayCount" VALUE="1"><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="-600"><PARAM NAME="WindowlessVideo" VALUE="0">
<embed type=application/x-oleobject codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 flename=mp src='http://www.cec.zju.edu.cn/goodknight/show/music/love.mp3' width=150 height=50></embed></OBJECT>


3、再点击Toggle Mode切换回来,就可以看到效果。

rm、flash等文件同理,只是代码不同罢了,具体代码如下:

rm文件:

<object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=145 width=193 id=RP1>
<param name="controls" value="ImageWindow">
<param name="console" value="Clip1">
<param name="autostart" value="false">
<param name="src" value="http://goodknight.blogbus.com/goodknight.rm">
<param name="nologo" value="false">
<param name="NOLABELS" value="true">
<param name="RESET" value="FALSE">
<param name="OPEN" value="FALSE">
<param name="END" value="TRUE">
</object>

flash文件:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0" ID=t003 WIDTH=300 HEIGHT=200>
<PARAM NAME="PLAY" VALUE="false">
<PARAM NAME="LOOP" VALUE="false">
<PARAM NAME="QUALITY" VALUE="high">
<PARAM NAME="BGCOLOR" VALUE="#FFFFFF">
<EMBED SRC="http://goodknight.blogbus.com/goodknight.swf" WIDTH="300" HEIGHT="200" PLAY="false" LOOP="false" QUALITY="high" BGCOLOR="#FFFFFF" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?   
P1_Prod_Version=ShockwaveFlash"> 
</EMBED>
</OBJECT>

wma文件:

<OBJECT classid="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A">
<PARAM NAME="Appearance" VALUE="0">
<PARAM NAME="AutoStart" VALUE="0">
<PARAM NAME="src" VALUE="http://goodknight.blogbus.com/goodknight.wma">
<PARAM NAME="Volume" VALUE="0">
</OBJECT>

wmv文件:

<object align=middle classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 class=OBJECT id=MediaPlayer width=500 height=350 >
<param name=ShowStatusBar value=-1>
<param name=Filename value=http://aaa.wmv>
<embed type=application/x-oleobject codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 flename=mp src=http://goodknight.blogbus.com/goodknight.wmv width=500 height=350></embed>
</object>
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2004-09-17 03:28
社区公告
暂无公告