登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

大海情怀

知识在于积累,聪明在于学习,智慧比财富更令人羡慕。

 
 
 

日志

 
 

网易博客代码.音频播放器代码第四部分(10例)  

2010-12-25 11:08:51|  分类: 博客技巧 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

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. 就可以看到出现在你的博客上了!

网易博客代码.音频播放器代码第四部分(10例) - 互联友吧 - 互联友吧

网易博客代码.音频播放器代码第四部分(10例) - 互联友吧 - 互联友吧

  评论这张
 
阅读(696)| 评论(10)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018