酷辣辣免费论坛套餐 - 帮助中心

·如何给你的论坛增加背景音乐[免费服务]

注意:这样的背景音乐只要浏览到其他页面就会消失或者重新开始,如果要真正意义上的播放背景音乐,请使用付费服务的二级域名设置,选择支持播放器并且加入歌曲,就能达到真正意义上的在线播放,用户浏览帖子的时候换页面不会影响播放,而且支持用户自己选择播放那首歌曲。

以下的歌曲midi的连接地址均是示范,请找实际能使用的midi或者其他歌曲的路径。

进入管理->资料修改. 在顶部或者尾部html代码里加入如下代码:
1.用midi方式的
<bgsound src="http://www.cctvt.com/textbook/matter/music/rain.mid" loop="-1">

其中把 http://www.cctvt.com/textbook/matter/music/rain.mid 替换成你的音乐文件网上存放路径就可以了.

2.用rm的方式,如下的代码,把其中的音乐地址换成你要的地址就可以了。

 

把下面的代码拷贝到你的底部html代码里,那每次进入都能听到随机不同的背景音乐了。当然是你有足够多的背景音乐噢,不然会重复的。
您可以把那些连接换成你的mid音乐路径就可以了。

<SCRIPT language="JavaScript">
<!--
var sound1="http://y365.com/oo00/zhuye/zhuye.mid"
var sound2="http://y365.com/oo00/zhuye/999.mid"
var sound3="http://y365.com/oo00/zhuye/62.mid"
var sound4="http://y365.com/oo00/8-aiqing/2.mid"
var sound5="http://y365.com/oo00/8-aiqing/6.mid"
var sound6="http://y365.com/oo00/8-aiqing/7.mid"
var sound7="http://y365.com/oo00/baiyifanxing/32.mid"
var sound8="http://y365.com/oo00/baiyifanxing/33.mid"
var sound9="http://y365.com/oo00/baiyifanxing/34.mid"
var sound10="http://y365.com/oo00/baiyifanxing/35.mid"
var sound10="http://y365.com/oo00/baiyifanxing/31.mid"
var sound10="http://y365.com/oo00/liuxiaoyun/yinyue/1.mid"
var sound10="http://y365.com/oo00/liuxiaoyun/yinyue/35.mid"
var x=Math.round(Math.random()*12)
if (x==0) x=sound1
else if (x==1) x=sound2
else if (x==2) x=sound3
else if (x==3) x=sound4
else if (x==4) x=sound5
else if (x==5) x=sound6
else if (x==6) x=sound7
else if (x==7) x=sound8
else if (x==8) x=sound9
else if (x==9) x=sound10
else x=sound10
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')
else
document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
//-->
</SCRIPT>