首先要说的是中间输入的音乐地址必须是网络地址而不是你电脑所在的音乐目录路径地址!! 然后再看下面的吧。。最简洁的代码是这样的: <bgsound src="你的背景音乐地址" loop=-1> 或者: <embed autostart="true" loop="-1" controls="controlpanel" width="0" height="0" src="你的背景音乐地址"> 两者的最大区别在于前者页面被最小化之后音乐就停了;后者页面最小化后音乐还是照旧播放,直到窗口被关闭。 共同点是,页面是当前窗口的时候,按esc键,音乐都会停。 以上两段代码都是放在<head></head>之间的.把如下代码加入<body>区域中,页面打开时就会有随机播放背景音乐 <script language="j**a - script"> <!-- 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 (n**igator.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> 把你找来的音乐分别替换上面“songn.mid”部分,然后把这短代码贴在<head>之间就好了。 需要说明的一点是:目前装修咱们的店铺公告板的时候,只能用<bgsound>这段代码(最简单的)。上面列出的另外两种代码,由于考虑到安全策略问题,故目前在淘宝网上暂时还不能用。但是你可以用到你的个人主页等其他地方啊。*^_^* 下面图示大家一下,看看怎样把背景音乐代码加入到你的店铺中。 1、进“我的淘宝”点击“管理我的店铺” 2、进入“基本设置” 3、先贴代码,再写你的公告文字 4、确认之后,再查看你的店铺主页,就能听到背景音乐了。如果你加的是<bgsound>,窗口最小化后就听不到音乐了;如果是<embed>那段代码,窗口最小化后音乐还是继续的。两者按esc键,音乐都会停的。 每段音乐,都藏着千百个聆听者不同的记忆。用在这里,也许会给你的店铺、宝贝增加很多个性色彩,也许会很招引人;但是,也许就会吓跑很多人,当然,也许还会引起别人的反感。就看你怎么选、怎么用了。 希望可以帮到你 你也可以去淘宝大学的经验居多看看,学学,对你有帮助哦 20210311
最早的掉落歌曲是《just the way you 》,之后出现 ,2015年4月改版之后,使用最多的是 的。 原唱:,janelle monáe所属专辑: 发行时间:2012年give me a second i给我一些时间i need to get my story straight让我理清思绪my friends are in the bathroom死党醉倒在洗手间getting hi...