广西经贸职业技术学院论坛

标题: 如何在网页中插入多首背景音乐? [打印本页]

作者: 美丽骗局    时间: 2008-6-19 11:28
标题: 如何在网页中插入多首背景音乐?
如何在网页中插入多首背景音乐?
作者: 韦罗    时间: 2008-6-19 13:51
[emq3]关于插入这个问题  对于新手来说是非常具有挑战性和技巧性的<br/> 如何插入呢  这就关系到插入方和被插入方是否都具有符合插入的实际条件<br/> 比如说时间啊 地点啊 身体条件等等  ··<br/>    相信LZ现在应该懂得如何插入了吧
作者: 薇薇菡筱    时间: 2008-6-19 22:13
<script language=&quot;javascript&quot;> <br/> <!--// <br/> document.write (&quot;<OBJECT id=Player2 name=Player2 classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 border=\&quot;0\&quot; width=100% height=70 type=application/x-oleobject standby=\&quot;Loading Windows Media Player components...\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;AudioStream\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;AutoSize\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;AutoStart\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;AnimationAtStart\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;AllowScan\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;AllowChangeDisplaySize\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;AutoRewind\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;Balance\&quot; value=\&quot;10\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;BaseURL\&quot; value>\n&quot;) <br/> document.write (&quot;<param name=\&quot;BufferingTime\&quot; value=\&quot;5\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;CaptioningID\&quot; value>\n&quot;) <br/> document.write (&quot;<param name=\&quot;ClickToPlay\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;CursorType\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;CurrentPosition\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;CurrentMarker\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;DefaultFrame\&quot; value>\n&quot;) <br/> document.write (&quot;<param name=\&quot;DisplayBackColor\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;DisplayForeColor\&quot; value=\&quot;16777215\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;DisplayMode\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;DisplaySize\&quot; value=\&quot;4\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;Enabled\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;EnableContextMenu\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;EnablePositionControls\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;EnableFullScreenControls\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;EnableTracker\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;Filename\&quot; value=\&quot;songlist.asp?<%=Request.QueryString()%>\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;InvokeURLs\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;Language\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;Mute\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quotlayCount\&quot; value=\&quot;5\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quotreviewMode\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;Rate\&quot; value=\&quot;1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SAMILang\&quot; value>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SAMIStyle\&quot; value>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SAMIFileName\&quot; value>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SelectionStart\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SelectionEnd\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SendOpenStateChangeEvents\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SendWarningEvents\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SendErrorEvents\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SendKeyboardEvents\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SendMouseClickEvents\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SendMouseMoveEvents\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;SendPlayStateChangeEvents\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;ShowCaptioning\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;ShowControls\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;ShowAudioControls\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;ShowDisplay\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;ShowGotoBar\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;ShowPositionControls\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;ShowStatusBar\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;ShowTracker\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;TransparentAtStart\&quot; value=\&quot;-1\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;VideoBorderWidth\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;VideoBorderColor\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;VideoBorder3D\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;Volume\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<param name=\&quot;WindowlessVideo\&quot; value=\&quot;0\&quot;>\n&quot;) <br/> document.write (&quot;<embed type=\&quot;application/x-mplayer2\&quot; pluginspage=\&quot;http://www.microsoft.com/windows/mediaplayer/download/default.asp\&quot; Name=\&quotlayer\&quot; width=\&quot;100%\&quot; height=\&quot;70\&quot; border=\&quot;0\&quot; SHOWSTATUSBAR=\&quot;-1\&quot; SHOWCONTROLS=\&quot;0\&quot; SHOWGOTOBAR=\&quot;0\&quot; SHOWDISPLAY=\&quot;-1\&quot; INVOKEURLS=\&quot;-1\&quot; AUTOSTART=\&quot;1\&quot; CLICKTOPLAY=\&quot;0\&quot; DisplayForeColor=\&quot;12945678\&quot;>\n&quot;) <br/> document.write (&quot;</OBJECT>\n&quot;) <br/> //--> <br/> </script> <br/> 这是一个播放器代码 <br/> 你修改一下filename文件得属性就可以了 <br/> 需要自己编写一个songlist文件 <br/> 格式如下 <br/> <ASX version=&quot;3.0&quot;> <br/> <ENTRY> <br/> <REF HREF=&quot;歌曲地址&quot;/> <br/> </ENTRY> <br/> </ASX> <br/> 有多少首歌,就添加多少个<entry></entry>
作者: 薇薇菡筱    时间: 2008-6-19 22:15
标题: 第二种方法
<br/>
  1. <br/> 在你的网页中插入以下代码,可实现多首背景音乐循环播放!“歌曲地址” 表示音乐地址<br/> <script LANGUAGE=&quot;javascript&quot;> <br/> <!-- <br/> var sound1=&quot;http://歌曲地址&quot; <br/> var sound2=&quot;http://歌曲地址&quot; <br/> var sound3=&quot;http://歌曲地址&quot; <br/> var sound4=&quot;http://歌曲地址&quot; <br/> var sound5=&quot;http://歌曲地址&quot; <br/> var sound6=&quot;http://歌曲地址&quot; <br/> var sound7=&quot;http://歌曲地址&quot; <br/> var sound8=&quot;http://歌曲地址&quot; <br/> var sound9=&quot;http://歌曲地址&quot; <br/> var sound10=&quot;http://歌曲地址&quot; <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==&quot;Microsoft Internet Explorer&quot; <br/> document.write('<bgsound src='+'&quot;'+x+'&quot;'+' loop=&quot;infinite&quot;>') <br/> else <br/> document.write('<embed src='+'&quot;'+x+'&quot;'+'hidden=&quot;true&quot; autostart=&quot;true&quot; loop=&quot;true&quot;>') <br/> //--> <br/> </SCRIPT> <br/>
复制代码

作者: 美丽骗局    时间: 2008-6-20 11:27
多谢两个楼上咯![em1][em18]<br/> 呵呵<br/> 说真的谢谢啦
作者: 神偷小千    时间: 2008-6-30 13:06
我想插入的是循环播放音乐
作者: 梦想飞    时间: 2008-6-30 15:38
我插入网页,好像没用!!
作者: wkjgc123    时间: 2008-11-11 14:07
标题: 怎么做
<font face="Verdana">怎么做</font>
作者: 永不妥协    时间: 2009-3-18 19:55
在百度看看,里面会写有给你的
作者: jhm101886064    时间: 2009-5-17 17:16
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 广西经贸职业技术学院论坛 (http://gxjmbbs.com/) Powered by Discuz! X3.2