版权声明 关于本站 在线留言 登陆管理 个人博客 |
『辰桦网络』. All Rights Reserved Station construction time: on April 4, 2006 |
网页做好以后,想在里面放上配套的音乐或自己喜欢的音乐
怎么放
只要把做好的文章放到源代码状态下
在源代码的下方粘贴上代码
<embed src=音乐网址 type=audio/x-pn-realaudio-plugin
controls=ControlPanel,
StatusBar AutoStart=true Loop=true width=400 height=40>
这是显示播放器的
若不想显示播放器就粘贴
<EMBED src=音乐网址 width=0 height=0
type=audio/mpeg AutoStart="true" Loop="true">
还可以直接剥现成的背景音乐
关键是找准源代码
再粘贴到自己文章的源代码里
想加多首音乐源代码是
<script LANGUAGE="javascript">
<!--
var sound1="http://歌曲地址"
var sound2="http://歌曲地址"
var sound3="http://歌曲地址"
var sound4="http://歌曲地址"
var sound5="http://歌曲地址"
var sound6="http://歌曲地址"
var sound7="http://歌曲地址"
var sound8="http://歌曲地址"
var sound9="http://歌曲地址"
var sound10="http://歌曲地址"
var x=Math.round(Math.random()*10)
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 x=sound10
if (navigator.appName=="Microsoft Internet Explorer"
document.write(''<bgsound src="/+''+x+''+'' loop="infinite">'')
else
document.write(''<embed src="/+''+x+''+''hidden="true" autostart="true" loop="true">'')
//-->
</SCRIPT>
这里的音乐地址要换成你想要音乐的地址哟