1.
<Embed src="音乐地址" ShowPositionControls="0" Volume="0" EnableContextMenu="0" showgotobar="0" showstatusbar="0" AllowScriptAccess="never" AutoStart="1" PlayCount="0" width="300" height="35">
2.
<Embed style="FILTER: gray()" src="音乐地址" ShowPositionControls="0" Volume="0" EnableContextMenu="0" showgotobar="0" showstatusbar="0" AllowScriptAccess="never" AutoStart="1" PlayCount="0" Width=300 Height=35>
3.
<Embed style="FILTER: xray()" src="音乐地址" ShowPositionControls="0" Volume="0" EnableContextMenu="0" showgotobar="0" showstatusbar="0" AllowScriptAccess="never" AutoStart="1" PlayCount="0" Width=300 Height=35>
4.
<FONT style="BACKGROUND-COLOR: #660066"><Embed style="FILTER: gray()alpha(opacity=35,style=1,finishopacity=35)" src="音乐地址" ShowPositionControls="0" Volume="0" EnableContextMenu="0" showgotobar="0" showstatusbar="0" AllowScriptAccess="never" AutoStart="1" PlayCount="0" Width="300" Height="35"></FONT>
5.
<FONT style="BACKGROUND-COLOR: #000066"><Embed style="FILTER: gray()alpha(opacity=35,style=1,finishopacity=35)" src="音乐地址" ShowPositionControls="0" Volume="0" EnableContextMenu="0" showgotobar="0" showstatusbar="0" AllowScriptAccess="never" AutoStart="1" PlayCount="0" Width="300" Height="35"></FONT>
6.
<FONT style="BACKGROUND-COLOR: #0000cc"><Embed style="FILTER: gray()alpha(opacity=35,style=1,finishopacity=35)" src="音乐地址" ShowPositionControls="0" Volume="0" EnableContextMenu="0" showgotobar="0" showstatusbar="0" AllowScriptAccess="never" AutoStart="1" PlayCount="0" Width="300" Height="35"></FONT>
7.
<FONT style="BACKGROUND-COLOR: #00cc00"><Embed style="FILTER: gray()alpha(opacity=35,style=1,finishopacity=35)" src="音乐地址" ShowPositionControls="0" Volume="0" EnableContextMenu="0" showgotobar="0" showstatusbar="0" AllowScriptAccess="never" AutoStart="1" PlayCount="0" Width="300" Height="35"></FONT>
8.
<FONT style="BACKGROUND-COLOR: #ffff00"><Embed style="FILTER: gray()alpha(opacity=35,style=1,finishopacity=35)" src="音乐地址" ShowPositionControls="0" Volume="0" EnableContextMenu="0" showgotobar="0" showstatusbar="0" AllowScriptAccess="never" AutoStart="1" PlayCount="0" Width="300" Height="35"></FONT>
9.
<FONT style="BACKGROUND-COLOR: #ff6600"><Embed style="FILTER: gray()alpha(opacity=35,style=1,finishopacity=35)" src="音乐地址" ShowPositionControls="0" Volume="0" EnableContextMenu="0" showgotobar="0" showstatusbar="0" AllowScriptAccess="never" AutoStart="1" PlayCount="0" Width="300" Height="35"></FONT>
10.
<FONT style="BACKGROUND-COLOR: #ff3300"><Embed style="FILTER: gray()alpha(opacity=35,style=1,finishopacity=35)" src="音乐地址" ShowPositionControls="0" Volume="0" EnableContextMenu="0" showgotobar="0" showstatusbar="0" AllowScriptAccess="never" AutoStart="1" PlayCount="0" Width="300" Height="35"></FONT>
说明:(对音频播放器熟悉的朋友可以下列能控件的语法插入到上列代码中)
1.
隐藏不显示:<BGSOUND SRC="音乐地址" LOOP="循环次数">
loop=-1 无限循环
2.
显示播放器:<embed src=歌曲地址 width=200 height=50 type=audio/mpeg loop="true" autostart="true">
loop="true"表示无限次循环 loop="false"表示自由控制播放次数。等号后面也可以换成任何阿拉伯字。 height="高度值" width="宽度值" 这些同样可以自由调控。可播放RM、WMA、MP3格式的音乐
autostart="true"中true或1表示自动播放,false或0表示手动播放
loop="true" 中的true或1表示重复播放,false或0表示只播放一次
width= height= 中的数字分别表示播放器的宽度和高度 =0表示隐藏播放器
EnableContextMenu="0" 禁右键
ShowStatusBar="1" 显示文件播放信息
volume:取值范围为"0-100",设置音量,默认为系统本身的音量
starttime:"分:秒",设置歌曲开始播放的时间,如,starttime="00:10",
从第10秒开始播放
endtime: "分:秒",设置歌曲结束播放的时间
controls :控制面板的外观controls="console/smallconsole/playbutton/ pausebutton/stopbutton/volumelever" ·console 正常大小的面板
·smallconsole 较小的面板
·playbutton 显示播放按钮
·pausebutton 显示暂停按钮
·stopbutton 显示停止按钮
·volumelever 显示音量调节按钮
hidden: 为true时可以隐藏面板
置入博客方法如下图解:
1. 进入编辑→2. 排版→3. 模块→ 4. 添加自定义html(显示)(出现在网页左下角)→ 5. 复制下列语法后贴上→6. 新增→ 7. 将模块移到想显示的位置→8. 再保存(右上角)→9. 预览我的博客。→10. 就可以看到出现在你的博客上了!
评论