Home  >  Article  >  Web Front-end  >  The background music can be automatically changed every time it is refreshed_Typical special effects

The background music can be automatically changed every time it is refreshed_Typical special effects

WBOY
WBOYOriginal
2016-05-16 19:20:001040browse




Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=348256
<script> <BR><!-- <BR>var sound1="http://歌曲地址" <BR>var sound2="http://歌曲地址" <BR>var sound3="http://歌曲地址" <BR>var sound4="http://歌曲地址" <BR>var sound5="http://歌曲地址" <BR>var sound6="http://歌曲地址" <BR>var sound7="http://歌曲地址" <BR>var sound8="http://歌曲地址" <BR>var sound9="http://歌曲地址" <BR>var sound10="http://歌曲地址" <BR>var x=Math.round(Math.random()*10) <BR>if (x==0) x=sound1 <BR>else if (x==1) x=sound2 <BR>else if (x==2) x=sound3 <BR>else if (x==3) x=sound4 <BR>else if (x==4) x=sound5 <BR>else if (x==5) x=sound6 <BR>else if (x==6) x=sound7 <BR>else if (x==7) x=sound8 <BR>else if (x==8) x=sound9 <BR>else x=sound10 <BR>if (navigator.appName=="Microsoft Internet Explorer" <BR>document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">') <BR>else <BR>document.write('<embed src='+'"'+x+'"'+'hidden="true" autostart="true" loop="true">') <BR>//--> <BR></script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn