1、制作网页时怎样将插入的音乐的播放器隐藏
第一步:导入音乐在Dreamweaver中新建一个页面,并插入表格,选择菜单中的“插入”-“媒体”- “插件”在弹出的对话框中站点文件夹中找到要导入的音乐,将音乐导入到表格,默认是宽高各为32像素,如 如果你想叫它显示,那么就设置一下高和宽就行了,最小可以设置高和宽各为1,这样也和隐藏差不多啦。 第二步:刚才插入了一首音乐,注意看下面的属性面板,单击“参数”按钮。在弹出的“参数”对话框中的“参数”列的第一行中单击鼠标左键,输入hidden 然后在“值”列的第一行中单击鼠标左键,输入参数值True 这样就设置了隐藏播放器界面了。
2、网页制作的背景音乐怎么插入?
<bgsound loop="-1" src="这里放音乐地址"></bgsound>(停止播放,按“ESC”键)
希望能帮到你··
3、网页制作怎么插入音乐
制作好之后用右键选择记事本打开,找到<body>在下面加一行<bgsound src="你的MP3地址.mp3" autostart=true loop=infinite>
把音乐移动到和你的网页文件同一级目录下面或者子目录下,例如你的网页在 page目录 那么就把音乐放在 page/**.mp3 或者放在 page/images/**mp3,这样方便修改和打包网页文件。
4、在用dreamweaver制作网页中如何插入背景音乐?
在设计图示下,最下面有“页面属性”
在页面属性里找相关选项
其实代码也很简单的
在代码图示找到<head>
在这个后面输入
<EMBED src="1.mp3" hidden="true" autostart="true" loop="true" width=300 height=100>
这样就可以了
其中,“1.mp3”是音乐文件的路径,如果是和网页在同一个目录下只打上名字就可以了,hidden是是否隐藏播放器,true是隐藏,false是显示,其他可以不用动
5、网页制作如何插入试听音乐
<HTML> <HEAD> <TITLE> 在网页中插入音乐</TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> <script language=jscript> function runCode(obj) //定义一个运行代码的函数, { var code=obj.value;//即要运行的代码。 var newwin=window.open('','',''); //打开一个窗口并赋给变量newwin。 newwin.opener = null // 防止代码对论谈页面修改 newwin.document.write(code); //向这个打开的窗口中写入代码code,这样就实现了运行代码功能。 newwin.document.close(); //newwin.close(); } </script> </script> </HEAD> <BODY topmargin=0> <bgsound id='bgsnd' src="" autostart=false > <table border="1" width="100%" id="table1"> <tr> <td>可以在网页中插入音乐播放器:</td> <td><textarea cols="99" rows="11" name="em" tabindex="1"> <html> <body> <embed src="yssa.mp3" width=200 height=50 type=audio/mpeg loop="true" autostart="true"> </embed> 支持的音乐格式: wma、mp3、rm、ra、ram、asf,尽量选用可连接性高的音乐链接,保证音乐可以顺利播放; <br> width和height表示播放器宽度和高度,可以灵活设置; <br> autostart="true"表示自动播放,<br> autostart="false"表示不自动播放;<br> loop="true"表示连续循环播放,<br> loop="false"表示不循环播放; loop也可以设为一个整数,比如loop="3",表示音乐循环播放3次; </body> </html></textarea></td> </tr> <tr> <td> </td> <td> <p><input type="button" value="运行代码" name="B3" onclick="runCode(document.all.em);"></p></td> </tr> <tr> <td>可以在网页中插入音乐播放器:</td> <td><textarea cols="99" rows="11" name="emb" tabindex="2"><html> <body bgproperties="fixed" bgcolor="#000000"> <OBJECT classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 codeBase= http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809 height=256 id=NSOPlay type=application/x-oleobject width=245 standby="Connecting with Live Event. Please wait patiently..."> <PARAM NAME="AudioStream" VALUE="-1"> <PARAM NAME="AutoSize" VALUE="-1"> <PARAM NAME="AutoStart" VALUE="-1"> <PARAM NAME="AnimationAtStart" VALUE="-1"> <PARAM NAME="AllowScan" VALUE="-1"> <PARAM NAME="AllowChangeDisplaySize" VALUE="-1"> <PARAM NAME="AutoRewind" VALUE="-1"> <PARAM NAME="Balance" VALUE="-1"> <PARAM NAME="BaseURL" VALUE=""> <PARAM NAME="BufferingTime" VALUE="5"> <PARAM NAME="CaptioningID" VALUE="-1"> <PARAM NAME="ClickToPlay" VALUE="-1"> <PARAM NAME="CursorType" VALUE="-1"> <PARAM NAME="CurrentPosition" VALUE="-1"> <PARAM NAME="CurrentMarker" VALUE="-1"> <PARAM NAME="DefaultFrame" VALUE="content"> <PARAM NAME="DisplayBackColor" VALUE="0"> <PARAM NAME="DisplayForeColor" VALUE="16777215"> <PARAM NAME="DisplayMode" VALUE="0"> <PARAM NAME="DisplaySize" VALUE="4"> <PARAM NAME="Enabled" VALUE="-1"> <PARAM NAME="EnableContextMenu" VALUE="-1"> <PARAM NAME="EnablePositionControls" VALUE="-1"> <PARAM NAME="EnableFullScreenControls" VALUE="-1"> <PARAM NAME="EnableTracker" VALUE="-1"> <PARAM NAME="Filename" VALUE="yssa.mp3"> <PARAM NAME="InvokeURLs" VALUE="-1"> <PARAM NAME="Language" VALUE="-1"> <PARAM NAME="Mute" VALUE="0"> <PARAM NAME="PlayCount" VALUE="-1"> <PARAM NAME="PreviewMode" VALUE="0"> <PARAM NAME="Rate" VALUE="1"> <PARAM NAME="SAMILang" VALUE=""> <PARAM NAME="SAMIStyle" VALUE=""> <PARAM NAME="SAMIFileName" VALUE=""> <PARAM NAME="SelectionStart" VALUE="-1"> <PARAM NAME="SelectionEnd" VALUE="-1"> <PARAM NAME="SendOpenStateChangeEvents" VALUE="-1"> <PARAM NAME="SendWarningEvents" VALUE="-1"> <PARAM NAME="SendErrorEvents" VALUE="-1"> <PARAM NAME="SendKeyboardEvents" VALUE="0"> <PARAM NAME="SendMouseClickEvents" VALUE="-1"> <PARAM NAME="SendMouseMoveEvents" VALUE="-1"> <PARAM NAME="SendPlayStateChangeEvents" VALUE="-1"> <PARAM NAME="ShowCaptioning" VALUE="0"> <PARAM NAME="ShowControls" VALUE="-1"> <PARAM NAME="ShowAudioControls" VALUE="-1"> <PARAM NAME="ShowDisplay" VALUE="-1"> <PARAM NAME="ShowGotoBar" VALUE="0"> <PARAM NAME="ShowPositionControls" VALUE="-1"> <PARAM NAME="ShowStatusBar" VALUE="-1"> <PARAM NAME="ShowTracker" VALUE="-1"> <PARAM NAME="TransparentAtStart" VALUE="-1"> <PARAM NAME="VideoBorderWidth" VALUE="0"> <PARAM NAME="VideoBorderColor" VALUE="0"> <PARAM NAME="VideoBorder3D" VALUE="0"> <PARAM NAME="Volume" VALUE="-450"> <PARAM NAME="WindowlessVideo" VALUE="0"> <EMBED type="video/x-ms-asf-plugin" pluginspage=" http://www.microsoft.com/goto/mscom/windows/mediaplayer/default.asp" filename="yssa.mp3" name="NSOPlay" width="286" height="172" DefaultFrame="content" AnimationAtStart="-1" AutoRewind="-1" AutoStart="-1" Autosize="-1" ControlType="-1" DisplaySize="6" ShowAudioControls="-1" ShowControls="-1" ShowDisplay="-1" ShowGotoBar="-1" ShowPositionControls="-1" ShowStatusBar="-1" ShowTracker="-1" TransparentAtStart="-1"> </EMBED> </OBJECT> <br/> <input onclick="document.all.NSOPlay.pause()" type=button value="停止"> <input onclick="document.all.NSOPlay.play()" type=button value="播放"> <input onclick="document.all.NSOPlay.ShowStatusBar='0'" type=button value="没有状态栏"> <input onclick="document.all.NSOPlay.Volume='-1000'" type=button value="减小声音"> <input onclick="document.all.NSOPlay.Volume='0'" type=button value="增大声音"> <input onclick="document.all.NSOPlay.Stop();document.all.NSOPlay.CurrentPosition=0;document.all.NSOPlay.play()" type=button value="回放"> <input onclick="document.all.NSOPlay.Previous()" type=button value="上一首"> <input onclick="document.all.NSOPlay.Next()" type=button value="下一首"> <input onclick="document.all.NSOPlay.FastForward()" type=button value="快进"> </body> </html> </textarea></td> </tr> <tr> <td> </td> <td> <p><input type="button" value="运行代码" name="B3" onclick="runCode(document.all.emb);"></p></td> </tr> <tr> <td>可以在网页中控制背景音乐:</td> <td><textarea cols="99" rows="11" name="bg" tabindex="3"><html> <body> <bgsound src="a.mp3" loop=-1> "BGSOUND" 是用来插入背景音乐,但只适用于 IE,其参数设定不多。如下 <pre><BGSOUND src="your.mid" autostart=true loop=infinite> </pre> src="your.mid" 设定midi 档案及路径,可以是相对或绝对。 autostart=true 是否在音乐档下载完之后就自动播放。true 是,false 否 (内定值)。 loop=infinite 是否自动反复播放。LOOP=2 表示重复两次,Infinite 表示重复多次。 ■ <EMBED>: EMBED> 是用来插入各种多媒体,格式可以是 Midi、Wav、AIFF、AU 等等,Netscape 及 新版的 IE 都支持。其参数设定较多。如下下 <EMBED src="your.mid" autostart="true" loop="true" hidden="true"> src="your.mid" 设定midi 档案及路径,可以是相对或绝对。 autostart=true 是否在音乐档下载完之后就自动播放。true 是,false 否 (内定值)。 loop="true" 是否自动反复播放。LOOP=2 表示重复两次,true 是, false 否。 HIDDEN="true" 是否完全隐藏控制画面,true 为是,no 为否 (内定)。 STARTTIME="分:秒" 设定歌曲开始播放的时间。如 STARTTIME="00:30" 表示从第30秒处开始播放。 VOLUME="0-100" 设定音量的大小,数值是0到100之间。内定则为使用系统本身的设定。 WIDTH="整数" 和 HIGH="整数" 设定控制面板的高度和宽度。(若 HIDDEN="no") ALIGN="center" 设定控制面板和旁边文字的对齐方式,其值可以是 top、bottom、center、baseline、 left、right、texttop、middle、absmiddle、absbottom CONTROLS="smallconsole" 设定控制面板的外观。预设值是 console。 console 一般正常面板 smallconsole 较小的面板 playbutton 只显示播放按钮 pausecutton 只显示暂停按钮 stopbutton 只显示停止按钮 volumelever 只显示音量调节按 </pre> </body> </html></textarea></td> </tr> <tr> <td> </td> <td> <p><input type="button" value="运行代码" name="B7" onclick="runCode(document.all.bg);"><input type="button" value="播放背景音乐" name="B6" onclick="document.all.bgsnd.src=document.all.D1.value"><select size="1" name="D1"> <option selected value="a.mp3">第一首歌</option> <option value="yssa.mp3">第二首歌</option> </select><input type="button" value="停止背景音乐" name="B5" onclick="document.all.bgsnd.src=''"></p></td></tr> </table> </BODY> </HTML> 用上面代码看看
6、怎样在制作的网页中插入音乐播放器
<html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 6.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> <title>插入音乐播放器</title> </head> //只需要注意rows="*,21"这句就可以,21表示播放器占的高度为21个象素。 <frameset framespacing="0" border="0" frameborder="0" rows="*,21"> //src="index.asp"这句明白就可以了,双引号中加入你的主页面地址,老规矩,用相对路径。 <frame name="header" scrolling="auto" noresize target="main" src="index.asp"> //同样的只看这一句src="music/index.htm",双引号中是你播放器页面地址。 <frame name="main" scrolling="no" src="/music.htm" noresize target="_self"> <noframes> <body> <p>此网页使用了框架,但您的浏览器不支持框架。</p> </body> </noframes> </frameset> </html>
7、急求!!网页设计怎么加入背景音乐?
1、首先我们打开电脑里的Frontpage软件,右键单击页面,选择“网页属性”。
2、打开“网页属性”对话框,在“常规”选项卡下,单击“浏览”按钮。
3、打开“背景音乐”对话框,在其中找到准备好的mid音频文件,单击“打开”按钮。
4、然后回到了“网页属性”对话框,在“循环次数”一栏中可以设定循环次数,也可以勾选不限循环次数。
5、现在单击“确定”按钮,关闭“网页属性”对话框,切换到“代码”编辑窗口,输入代码。
6、在代码中我们可以看到“loop="0" ”,代表循环次数,如果是无限循环,我们可以令loop="-1"。
8、网页制作如何插入背景音乐
直接插入一个行为就可以了:一、学会添加音乐文件为网页添加背景音乐的方法一般有两种,第一种是通过普通的〈 bgsound〉标签来添加,另一种是通过〈 embed〉标签来添加。(一)使用〈 bgsound〉标签用Dreamweaver打开需要添加背景音乐的页面,点击“代码”打开代码编辑视图,在〈 body〉〈 /body〉之间输入“〈 ”在弹出的代码提示框中选择bgsound。Dreamweaver自动输入“〈 bgsound”代码后按空格键,代码提示框会自动将bgsound标签的属性列出来供你选择使用。bgsound标签共有五个属性,其中balance是设置音乐的左右均衡,delay是进行播放延时的设置,loop是循环次数的控制,src则是我们音乐文件的路径,volume是音量设置。一般在添加背景音乐时,我们并不需要对音乐进行左右均衡以及延时等设置,所以仅需要几个主要的参数就可以了。最后的代码如下:〈 bgsound src="music.mid" loop="-1"〉其中,loop="-1"表示音乐无限循环播放,如果你要设置播放次数,则改为相应的数字即可。这种添加背景音乐的方法是最基本的方法,也是最为常用的一种方法,对于背景音乐的格式支持现在大多的主流音乐格式,如WAV、MID、MP3等。如果要顾及到网速较低的浏览者,则可以使用MID音效作为网页的背景音乐,因为MID音乐文件小,这样在网页打开的过程中能很快加载并播放,但是MID也有不足的地方,它只能存放音乐的旋律,没有好听的和声以及唱词。如果你的网速较快,或是觉得MID音乐有些单调,也可以添加MP3的音乐。只要将上述代码中的happy.mid改为happy.mp3即可。提示:在FrontPage中加入背景音乐要比Dreamweaver相对方便一些,只要在“背景”对话框中进行相关设置即可。(二)使用〈 embed〉标签使用〈 embed〉标签来添加音乐的方法并不是很常见,但是它的功能非常强大,如果结合一些播放控件就可以打造出一个Web播放器。它的使用方法与第一种基本一样,只是第一步的代码提示框里不要选择gbsound,改而选择embed即可。然后再选择它的属性进行相应的设置(图3),从图中可看出embed的属性比gbsound的五个属性多许多。最后的代码如下:〈 embed src="music.mp3" autostart="true" loop="true" hidden="true"〉〈 /embed〉。
9、谁会网页设计?如何在网页插入背景音乐?
当您打开网站时即可听到背景音乐:
<bgsound src=china.mid loop=”-1″>