网页中添加播放器播放视频文件与网页增加背景音乐示例

一.在网页中播放视频文件,以下代码是播放器,再加入如【☆☆动作-欧美-虎胆龙威4-原创02.dvd.rm】电影,打开即可播放了!

< html >
< head >
< title > 无标题文档 </ title >
< meta http-equiv ="Content-Type" content ="text/html;charset=gb2312" >
</ head >

< body bgcolor ="#FFFFFF" text ="#000000" >
< table border ="0" width ="36%" cellpadding ="0" cellspacing ="0" align ="center" >
< tr >
< td width ="100%" valign ="bottom" height ="360" bgcolor ="#666666" >
< table width ="56%" border ="1" cellspacing ="0" cellpadding ="0" align ="center" bordercolor ="#666666" >
< tr >
< td >< object id ="RP1" classid ="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width =419 height =300 >
< param name ="_ExtentX" value ="4657" >
< param name ="_ExtentY" value ="3493" >
< param name ="AUTOSTART" value ="-1" >
< param name ="SHUFFLE" value ="0" >
< param name ="PREFETCH" value ="0" >
< param name ="NOLABELS" value ="-1" >
< param name ="SRC" value ="☆☆动作-欧美-虎胆龙威4-原创02.dvd.rm" >
< param name ="CONTROLS" value ="Imagewindow" >
< param name ="CONSOLE" value ="clip1" >
< param name ="LOOP" value ="0" >
< param name ="NUMLOOP" value ="0" >
< param name ="CENTER" value ="0" >
< param name ="MAINTAINASPECT" value ="0" >
< param name ="BACKGROUNDCOLOR" value ="#000000" >
</ object ></ td >
</ tr >
< tr >
< td >< object id ="RP2" classid ="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width =420 height =30 >
< param name ="_ExtentX" value ="4657" >
< param name ="_ExtentY" value ="794" >
< param name ="AUTOSTART" value ="-1" >
< param name ="SHUFFLE" value ="0" >
< param name ="PREFETCH" value ="0" >
< param name ="NOLABELS" value ="-1" >
< param name ="SRC" value ="☆☆动作-欧美-虎胆龙威4-原创02.dvd.rm" >
< param name ="CONTROLS" value ="ControlPanel" >
< param name ="CONSOLE" value ="clip1" >
< param name ="LOOP" value ="0" >
< param name ="NUMLOOP" value ="0" >
< param name ="CENTER" value ="0" >
< param name ="MAINTAINASPECT" value ="0" >
< param name ="BACKGROUNDCOLOR" value ="#000000" >
</ object ></ td >
</ tr >
</ table >
</ td >
</ tr >
</ table >
</ body >
</ html >

二.网页里加入音频文件播放方法如下:

如加入【古天乐 - 吻得到.爱不到.mp3】音频文件即可!

< html >
< head >
< title > 网页背景音乐制作【深海技术】 </ title >
< meta http-equiv ="Content-Type" content ="text/html;charset=gb2312" >
</ head >

< body >
< table border ="0" cellpadding ="0" cellspacing ="0" >
< tr >
< td >
< table border ="0" cellspacing ="0" cellpadding ="0" >
< tr >
< td >< embed id ="shenhai" src ='古天乐 -吻得到.爱不到.mp3'width ="0" height ="0" hidden ="true" autostart ="1" loop ="1" align ="middle" showdisplay ="0" showcontrols ="1" showpositioncontrols ="1" showselectioncontrols ="0" showtracker ="1" moviewindowsize ="0" fullscreenmode ="0" moviewindowwidth ="0" moviewindowheight ="0" autorewind ="1" playcount ="1" selectionstart ="0" appearance ="1" borderstyle ="0" filename ="古天乐-吻得到.爱不到.mp3" displaymode ="0" ></ embed >
</ td >
</ tr >
</ table >
</ td >
</ tr >
</ table >
</ body >
</ html >

你可能感兴趣的:(播放器)