背景音乐的路径怎么写?

zhusuhao 2002-09-04 06:25:03
我想实现背景音乐的选取功能,想用数据库来存路径。能实现选取本机的音乐来做背景音乐吗?要是能的话路径怎么写?请帮忙!
...全文
112 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhusuhao 2002-09-06
  • 打赏
  • 举报
回复
哈哈!我解决了。谢谢各位!

我是在数据库中直接保存本机的音乐的路径名,然后把它存在数据库中,在页面刷新时就能重数据库中读去出来用了。

D:/www/midi/46.mid这样的路径就行了
zhusuhao 2002-09-06
  • 打赏
  • 举报
回复
楼上兄弟用的是相对路径吧?能行吗?选取的又不是服务器端的音乐。
ybjhyr 2002-09-06
  • 打赏
  • 举报
回复
<bgsound id=bgs src="music/46.mid" loop="-1">
——————————————————————
好东西要大家分享
zhusuhao 2002-09-06
  • 打赏
  • 举报
回复
是啊,所以我要用数据库来为每个用户保存自己的背景音乐的路径名,然后读出来用。行吧?
meizz 2002-09-05
  • 打赏
  • 举报
回复
选择本机里的音乐文件作为网页的背景音乐
<bgsound id=bgs src="file:///D:/www/midi/46.mid" loop="-1">
<INPUT type=file onPropertyChange="document.all.bgs.src=this.value">

但这样我不能担保每个人的电脑里是否有这个文件。
zhusuhao 2002-09-04
  • 打赏
  • 举报
回复
这是一个播放器吧?呵呵!太壮观了!万分感谢!
我要的是<bgsound id=bgs src="mpath" loop="-1">中mpath的写法。:)
孟子E章 2002-09-04
  • 打赏
  • 举报
回复
<body>
<OBJECT classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809 height=256 id="NSOPlay" type=application/x-oleobject width=245 standby="Connecting with Live Event. Please wait patiently...">
<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="-1">
<PARAM NAME="Balance" VALUE="-1">
<PARAM NAME="BaseURL" VALUE="">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="-1">
<PARAM NAME="ClickToPlay" VALUE="-1">
<PARAM NAME="CursorType" VALUE="-1">
<PARAM NAME="CurrentPosition" VALUE="-1">
<PARAM NAME="CurrentMarker" VALUE="-1">
<PARAM NAME="DefaultFrame" VALUE="content">
<PARAM NAME="DisplayBackColor" VALUE="0">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayMode" VALUE="-1">
<PARAM NAME="DisplaySize" VALUE="-1">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableContextMenu" VALUE="-1">
<PARAM NAME="EnablePositionControls" VALUE="-1">
<PARAM NAME="EnableFullScreenControls" VALUE="-1">
<PARAM NAME="EnableTracker" VALUE="-1">
<PARAM NAME="Filename" VALUE="E:\mengxianhui\Mp3\AVSEQ03.DAT">
<PARAM NAME="InvokeURLs" VALUE="-1">
<PARAM NAME="Language" VALUE="-1">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="fullScreen" VALUE="true">
<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="-1">
<PARAM NAME="SendMouseMoveEvents" VALUE="-1">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="ShowAudioControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="-1">
<PARAM NAME="ShowGotoBar" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="-1">
<PARAM NAME="ShowStatusBar" VALUE="-1">
<PARAM NAME="ShowTracker" VALUE="-1">
<PARAM NAME="TransparentAtStart" VALUE="-1">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="Volume" VALUE="-450">
<PARAM NAME="WindowlessVideo" VALUE="0">
<EMBED type="video/x-ms-asf-plugin" pluginspage="http://www.microsoft.com/goto/mscom/windows/mediaplayer/default.asp" filename="http://colorweb.go.163.com/play.asx"
name="NSOPlay"
width="286"
height="172"
DefaultFrame="content"
AnimationAtStart="-1"
AutoRewind="-1"
AutoStart="-1"
Autosize="-1"
ControlType="-1"
DisplaySize="6"
ShowAudioControls="-1"
ShowControls="-1"
ShowDisplay="-1"
ShowGotoBar="-1"
ShowPositionControls="-1"
ShowStatusBar="-1"
ShowTracker="-1"
TransparentAtStart="-1">
</EMBED>
</OBJECT>
<br>
<input onclick="document.all.NSOPlay.pause()" type=button value="停止">
<input onclick="document.all.NSOPlay.AutoSize='-1';document.all.NSOPlay.fullScreen='true'" type=button value="fillscreen">
<input onclick="document.all.NSOPlay.Play()" type=button value="播放">
<input onclick="document.all.NSOPlay.ShowStatusBar='0'" type=button value="没有状态栏">
<input onclick="document.all.NSOPlay.Volume='-1000'" type=button value="减小声音">
<input onclick="document.all.NSOPlay.Volume='0'" type=button value="增大声音">
<input onclick="document.all.NSOPlay.Stop();document.all.NSOPlay.CurrentPosition=0;document.all.NSOPlay.play()" type=button value="回放">
<input onclick="document.all.NSOPlay.Previous()" type=button value="上一首">
<input onclick="document.all.NSOPlay.Next()" type=button value="下一首">
<input onclick="document.all.NSOPlay.FastForward()" type=button value="快进"><br>
最后的三个属性对多首曲目才有效果,有的属性只有相应的属性设置了才会起作用。
</body>
孟子E章 2002-09-04
  • 打赏
  • 举报
回复
"c:\mp3\xx.mp3"

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧