5D艺术网首页
商城
|
资讯
|
作品
|
博客
|
教程
|
论坛
登录
注册
加为好友
发短消息
来自:
性别:女士
最后登录:2010-10-14
http://cyy418.5d.cn/
首页
|
新闻
|
话题
|
博客
|
相册
|
艺术作品
|
社交关系
|
留言板
|
社交圈
2005/05/20 | 随即播放音乐!(把代码加入页面里面就可以了)
类别(转录)
|
评论
(0)
|
阅读(273)
|
发表于 22:41
从别人那里收到的。。放到这里来。。然后也去试试看。。。
自己修改音乐的连接路径:
<SCRIPT language="javascript">
<!--
var sound1="song1.mid"
var sound2="song2.mid"
var sound3="song3.mid"
var sound4="song4.mid"
var sound5="song5.mid"
var sound6="song6.mid"
var sound7="song7.mid"
var sound8="song8.mid"
var sound9="song9.mid"
var sound10="song10.mid"
var x=Math.round(Math.random()*9)
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" border="0" width="20" height="20" autostart="true" loop="true">')
//-->
</SCRIPT>
源自:IT 爱也恨也
var sound1="song1.mid"
这里的song1.mid要换成你要播放的音乐的地址
0
评论
Comments
日志分类
首页
[92]
记事本
[51]
图画册子
[23]
照相馆
[12]
转录
[5]
链接门
[1]