背景:#EDF0F5 #FAFBE6 #FFF2E2 #FDE6E0 #F3FFE1 #DAFAF3 #EAEAEF 默认  
阅读内容

校内网背景音乐歌曲连播代码

[日期:2008-07-11] 来源:Www.Mfzyw.Net  作者:免费资源网 [字体: ]
校内网背景音乐歌曲连播代码:多首背景歌曲连播,有两种方法
1、使用M3u列表(只能播放Mp3格式的文件)
首先, 新建一个记事本文件(这个要是不会赶紧去学电脑...)
  第二、从网上搜索你喜欢的歌曲,取得网址(一定要是Mp3格式的,其他格式不行),把你找来的MP3地址一个一行排好,一行只能排一个,不得有空行。如:
http://vip.hanzify.org/carlchina/temp/HITFMjh.mp3
http://vip.hanzify.org/carlchina/temp/HITFMjh.mp3
http://vip.hanzify.org/carlchina/temp/HITFMjh.mp3
  就像这样,地址可以无限多,最少一个,然后保存,保存的文件名最好是英文或者数字。
然后将记事本文件的扩展名.txt改为.M3U,系统会提示改扩展名会导致文件可能不可用,是否继续?点“是”,文件变为M3U了。你也可以将txt文件另存为.M3U格式。接着你可以打开试听一下效果,如果地址够快的话在你电脑本地就可以进行听歌了。
  最后,把这个M3U文件上传到校内网上,在上传好的文件里点属性,查看地址,将地址(一定是以M3u结尾的网址)贴进一下代码的音乐网址就可以了。
<EMBED src=../../音乐网址 width=180 height=50 type=audio/mpeg autostart="true" loop="true">
参数可以自己设置,请参照一自己修改。
2、使用ASX列表(不限制音乐格式)
首先新建一个记事本文件,将以下代码输入:
<ASX version ="3.0">
<Entry>
<Ref href = "http://img.xiaonei.com/photos/20061121/1720/orig55328.wma"/' target=_blank>http://img.xiaonei.com/photos/20061121/1720/orig55328.wma"/>
</Entry>
<Entry>
<Ref href = "http://img.xiaonei.com/photos/20061121/1640/orig46257.wma "/>
</Entry>
<Entry>
<Ref href = "http://img.xiaonei.com/photos/20061121/1710/orig52716.wma"/' target=_blank>http://img.xiaonei.com/photos/20061121/1710/orig52716.wma"/>
</Entry>
<Entry>
<Ref href = "http://img.xiaonei.com/photos/20061121/1720/orig55812.wma "/>
</Entry>
<Entry>
<Ref href = "http://img.xiaonei.com/photos/20061121/1730/orig57023.wma"/' target=_blank>http://img.xiaonei.com/photos/20061121/1730/orig57023.wma"/>
</Entry>
<Entry>
<Ref href = "http://img.xiaonei.com/photos/20061121/1730/orig57177.wma"/' target=_blank>http://img.xiaonei.com/photos/20061121/1730/orig57177.wma"/>
</Entry>
<Entry>
<Ref href = "http://img.xiaonei.com/photos/20061121/1640/orig46257.wma"/' target=_blank>http://img.xiaonei.com/photos/20061121/1640/orig46257.wma"/>
</Entry>
<Entry>
<Ref href = "http://img.xiaonei.com/photos/20061121/1730/orig58026.wma"/' target=_blank>http://img.xiaonei.com/photos/20061121/1730/orig58026.wma"/>
</Entry>
<Entry>
<Ref href = "http://img.xiaonei.com/photos/20061121/1740/orig58502.wma"/' target=_blank>http://img.xiaonei.com/photos/20061121/1740/orig58502.wma"/>
</Entry>
</ASX>
然后另存为扩展名为.asx的文件,如music.asx。你可以打开一下试听。最后将此文件上传到校内网上,获取文件地址。
将下列代码加入涂鸦板即可:
<embed src="http://img.xiaonei.com/photos/20061121/1740/orig79888.asx" autostart="true" loop="-1" controls="ControlPanel" width="0" height="0" ><!--背景音乐-->
你也可以用上面介绍的方法自行设置参数。
将记事本文件另存为htm网页文件,然后上传到校内网上,获取地址。
在涂鸦板中输入以下代码:
<div id=music><img src=":music.innerHTML='<ifr ame src=http://img.xiaonei.com/photos/20061121/2020/orig92674.htm height=0 marginwidth=0 marginheight=0 hspace=0 vspace=0 fr ameborder=0 scrolling=no></ifr ame>'" style=display:none></div><!--背景音乐-->
中间的网址即是你上传的网页地址。
直接复制可能没用,请下载代码。见下面的地址。这种我觉得比较好,我目前用的就是这种。
附件地址:http://img.xiaonei.com/photos/20061121/2140/orig106920.rar

各种方法均有自己的优缺点,自己取舍吧。

例如这个播放器
<!-背景音乐->
<embed style="FILTER: alpha(opacity=100,style=3) gray(); width: 400px; height:
 70px" name=MediaPlayer1 pluginspage=http://www.microsoft.com/Windows/MediaPlayer
src=../../ 自己加地址 width=50 height=13 type=application/x-mplayer2 autostart="true"
showcontrols="1" loop="true" volume="100">

推荐 】 【 打印
本文评论       全部评论

发表评论
  • 免费资源网提醒大家尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的言论行为而直接或间接导致的民事或刑事法律责任
  • 免费资源网有权保留或删除其管辖留言中的任意内容


点评: 字数
姓名:
内容查询
本站推荐
产品推荐
AD2