打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
各种播放器代码

添加视频的方法和添加FLASH的方法相似,现将其写出,供大家参考!

在已新建的模块的编辑区中复制粘贴入以下代码:

第一种:

<div align=center>

<embed      

src=视频地址

pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=media&sba=plugin&amp;"

type="application/x-mplayer2" border="0" width="100%" showcontrols="1" showaudiocontrols="1" showstatusbar="1" autostart=true loop=true enablecontextmenu="1">

</div>

第二种:

<div align=center>

<embed  

src=视频地址

type="audio/x-pn-realaudio-plugin"

controls="ImageWindow,ControlPanel,StatusBar" border="0" width="100%" height="200" autostart=true loop=true>

</div>

注:1、“视频地址”位置替换为你想要的视频的URL地址。

  2、autostart为自动播放控制,若为false则不自动播放,若为true则自动播放。

  3、loop为循环播放控制,若为false则不循环播放,若为true则循环播放。

    4、width控制视频的宽度,height控制高度,单位可以为百分比,也可以为数值,单位为像素。

说明:以上为最基本的视频代码操作,已足够使用。可以播放的格式为wmv,asf,rm,rmvb等一些常见的网络视频格式。wmv,asf格式的视频请选择第一组代码,rm,rmvb格式的视频请选择第二组代码。

  代码中:

          autostart="true"中true或1表示自动播放,false或0表示手动播放

loop="true" 中的true或1表示重复播放,false或0表示只播放一次
               
width= height= 中的数字分别表示播放器的宽度和高度 =0表示隐藏播放器

EnableContextMenu="0" 禁右键
ShowStatusBar="1" (带显示文件播放信息)
-----------------------------------------------------------

隐藏(hidden=true)播放器(不循环)
<EMBED src=音乐网址 hidden=true type=audio/x-ms-wma AUTOSTART="1">
-----------------------------------------------------------
隐藏(hidden=true)播放器(循环)
<EMBED src=音乐网址 hidden=true type=audio/mpeg AUTOSTART="1" loop="-1">
---------------------------------------------------------------
黑色[style="FILTER: xray()"]循环[loop="-1"]播放器
<EMBED style="FILTER: xray()" src=音乐网址 width=360 height=30 type=audio/mpeg volume="0" autostart="true" loop="-1">
--------------------------------------------------------------------------------
浅兰色循环(loop="-1")播放器
<EMBED src=音乐网址 width=300 height=45 type=audio/mpeg loop="-1" autostart="true" volume="0">
--------------------------------------------------------------------------
掩饰自动播放器
<TABLE style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0)gray(); WIDTH: 200px; HEIGHT: 83px">
<TBODY>
<TR>
<TD><EMBED src=音乐网址 width=200 height=40 type=audio/mpeg panel="0" autostart="true" loop="true">
</TD></TR></TBODY></TABLE>
-------------------------------------
连播放时选择曲目的播放器
<EMBED pluginspage=http://www.microsoft.com/windows/mediaplayer/download/default.asp width=400 height=172 type=application/x-mplayer2 FileName="音乐网址" SHOWCONTROLS="1" SHOWSTATUSBAR="1" SHOWDISPLAY="1" SHOWGOTOBAR="1" AUTOSTART="true" PlayCount="1">
----------------------------------------------------------------------------------------------
显示曲名的黑色带彩自动播放器
<EMBED style="FILTER: invert()" src=音乐网址 width=320 height=45 type=audio/x-ms-wma ShowStatusBar="1" loop="true" autostart="true">
-------------------------------------------------------------------------
显示曲名的灰白色面板
<EMBED style="FILTER: Gray()" src="链接地址" width=300 height=69 type=application/x-mplayer2 loop="-1" showcontrols="1" ShowDisplay="0" ShowStatusBar="1" autostart="1"></EMBED>
------------------------------------------
灰白面板
<embed style="FILTER: Gray()" src=链接地址 width=300 height=45 loop="-1" autostart="true"></EMBED>
---------------------------------------------------------------
(带显示文件播放信息)

<EMBED src="链接地址" width=300 height=69 type=application/x-mplayer2 loop="-1" showcontrols="1" ShowDisplay="0" ShowStatusBar="1" autostart="1"></EMBED>
-----------------------------------------------
黑色带彩棕色面板
<EMBED style="FILTER: invert()" src=链接地址 width=300 height=45 loop="-1" autostart="true"></EMBED>
---------------------------------------------------------------------
浅紫播放器
<TABLE borderColor=#4F3256 background=http://www.dabaoku.com/sucai/shejilei/bj/pic/0197.jpg border=1>
<TBODY><TR>
<TD style="FILTER: alpha(opacity=50,style=3)">
<P align=center><EMBED src=音乐网址  width=300 height=25 type=audio/mpeg loop="-1" autostart="false" volume="0">
</P></TD></TR></TBODY></TABLE>
----------------------------------------------------------------------------------------------
粉色
<TABLE borderColor=navy background=http://bbs.sm618.com/UploadFile/2005-9/200592522275884778.jpg border=0>
<TBODY><TR>
<TD style="FILTER: alpha(opacity=50,style=3)">
<P align=center><EMBED src=音乐网址  width=300 height=45 type=audio/mpeg loop="-1" autostart="0" volume="0">
</P></TD></TR></TBODY></TABLE>
------------------------------------------------------------------------------------
黄色闪光
<TABLE style="BORDER-RIGHT: #000000 3px dashed; BORDER-TOP: #000000 3px dashed; BORDER-LEFT: #000000 3px dashed; BORDER-BOTTOM: #000000 3px dashed" cellSpacing=0 cellPadding=0 bgColor=#00000>
<TBODY><TR><TD>
<TABLE borderColor=navy background=http://nxm.16789.net/s-helpSite/domName/nxm/20041114123131568.gif border=0>
<TBODY><TR>
<TD style="FILTER: alpha(opacity=50,style=3)">
<P align=center><EMBED src=音乐网址 width=400 height=35 type=audio/mpeg loop="-1" autostart="0" loop="-1">
</P></TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE>
--------------------------------------------------------------------------------
蓝色闪光
<TABLE borderColor=#dee4fe cellSpacing=3 cellPadding=0 background=http://www.yhbbs.com/UploadFile/2004-12/2004123023101352.gif border=2><TBODY><TR><TD><TABLE align=center border=0>
<TBODY><TR><TD style="FILTER: alpha(opacity=60,style=3)">
<P align=center><EMBED style="FILTER: Gray" src=音乐网址 width=400 height=35 type=audio/mpeg volume="0" autostart="false" loop="-1">
</P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
-------------------------------------------------------------------------
花边黑色
<TABLE style="BORDER-RIGHT: #000000 3px dashed; BORDER-TOP: #000000 3px dashed; BORDER-LEFT: #000000 3px dashed; BORDER-BOTTOM: #000000 3px dashed" cellSpacing=0 cellPadding=0 bgColor=#00000>
<TBODY><TR><TD>
<TABLE borderColor=#000000 align=center border=1>
<TBODY><TR><TD>
<P align=center><EMBED style="FILTER: Xray" src=音乐网址 width=400 height=35 type=audio/mpeg volume="0" autostart="false" loop="-0">
</P></TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE>
-----------------------------------------------------------------------------------------------------
粉色花边
<TABLE style="BORDER-RIGHT: #ff69b4 3px dotted; BORDER-TOP: #ff69b4 3px dotted; BORDER-LEFT: #ff69b4 3px dotted; BORDER-BOTTOM: #ff69b4 3px dotted" cellSpacing=0 cellPadding=0 align=center bgColor=white>
<TBODY>
<TR>
<TD>
<TABLE borderColor=#ff69b4 align=center bgColor=#ffccf5 border=2>
<TBODY>
<TR>
<TD style="FILTER: alpha(opacity=100,style=3)">
<P align=center><EMBED src=音乐网址 width=300 height=25 type=audio/mpeg volume="0" autostart="false" loop="-0">
</P></TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE>
-------------------------------------------------------------------------------------------
禁右键播放器
<EMBED style="BORDER-RIGHT: silver 1px solid; BORDER-TOP: silver 1px solid; BORDER-LEFT: silver 1px solid; BORDER-BOTTOM: silver 1px solid" src=音乐网址 width=200 height=40 type=audio/x-mplayer2 console="video" showstatusbar="0" EnableContextMenu="0" volume="0" autostart="0" loop="-1">
---------------------------------------------------------------------------------
上下移动  
<MARQUEE style="LEFT: 230px; ; TOP: 300px" scrollAmount=1 scrollDelay=200 direction=up behavior=alternate width=300 height=400><br><MARQUEE scrollAmount=1 scrollDelay=100 behavior=alternate><br><TABLE style="FILTER: progid:DXImageTransform.Microsoft.Shadow(color:#7ec0ee ,direction:145,strength:20)" cellSpacing=0 cellPadding=0 border=1>
<br><TBODY><br><TR><br><TD>
<EMBED style="FILTER: gray()" src=音乐网址 width=200 height=20 type=audio/mpeg showstatusbar="1" volume="0" loop="-1" autostart="1">
</TD></TR></TBODY></TABLE></MARQUEE></MARQUEE>
-------------------------------------------------------------------
(显示文件标签信息)蓝色

<DIV><EMBED src="链接地址" loop="-1" width=300 height=140 balance="true" showpositioncontrols="true" showtracker="true" showaudiocontrols="true" showcontrols="true" showstatusbar="true" showdisplay="true" displaysize="0" volume="100" autosize="true" autostart="true" animationatstart="true" transparentatstart="true"></EMBED></div>
--------------------------------------------------
(显示文件标签信息)灰白
<DIV><EMBED style="FILTER: Gray()" src="链接地址" loop="-1" width=300 height=140 balance="true" showpositioncontrols="true" showtracker="true" showaudiocontrols="true" showcontrols="true" showstatusbar="true" showdisplay="true" displaysize="0" volume="100" autosize="true" autostart="true" animationatstart="true" transparentatstart="true"></EMBED></div>
----------------------------------------------------
(显示文件标签信息)黑彩
<DIV><EMBED style="FILTER: invert()" src="链接地址" loop="-1" width=300 height=140 balance="true" showpositioncontrols="true" showtracker="true" showaudiocontrols="true" showcontrols="true" showstatusbar="true" showdisplay="true" displaysize="0" volume="100" autosize="true" autostart="true" animationatstart="true" transparentatstart="true"></EMBED></div>
-----------------------------------------------------------
(显示文件标签信息)黑
<DIV><EMBED style="FILTER: xray()" src="链接地址" loop="-1" width=300 height=140 balance="true" showpositioncontrols="true" showtracker="true" showaudiocontrols="true" showcontrols="true" showstatusbar="true" showdisplay="true" displaysize="0" volume="100" autosize="true" autostart="true" animationatstart="true" transparentatstart="true"></EMBED></div>
===================================================
连放
<EMBED style="FILTER: Gray()" src=音乐网址 width=500 height=35 type=audio/x-ms-wma controls="StatusBar,TACCtrl,ControlPanel" border="0" autostart="1" playcount="0" showtracker="1" volume="0"></EMBED>
=========================================================
图片播放器!
<TABLE style="FILTER: alpha(opacity=100 Style=0 FinishOpacity=100)" borderColor=#000000 height=249 cellSpacing=0 cellPadding=0 width=314 background=http://blog.chosun.com/web_file/blog/167/9167/1/rosa-77-06-3.gif border=0>
<TBODY>
<TR>
<TD width=314 height=180 cellpadding="0" cellspacing="0"></TD></TR>
<TR>
<TD align=left>
<P align=center>
<EMBED style="FILTER: alpha(opacity=100 Style=3 FinishOpacity=0)black(); style: " src=音乐网址 width=310 height=28 type=video/x-ms-asf loop="-1" autostart="1" volume="0">
</P></TD></TR></TBODY></TABLE>

请点击查看影音文件...

第三种样式:

请点击查看影音文件...


第四种样式:

请点击查看影音文件...



第五种样式:

请点击查看影音文件...



第六种样式:

请点击查看影音文件...



第七中播放样式:

请点击查看影音文件...


第八中播放样式:

请点击查看影音文件...

 

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
制作音画贴常用代码
多款音乐播放器代码
日志里添加背景音乐的方法
博客播放器代码
网页里加入音乐播放器代码
播放器(流光溢彩)
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服