!!!!在页面中怎么加入播放器!播放器可以写成htm文件直接调用吗?

yan717fang 2009-04-23 06:09:03
文件夹里有个两个.htm文件,一个写得是播放列表,另一个是播放器。要放入页面不知怎么办?
...全文
139 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
yan717fang 2009-04-24
  • 打赏
  • 举报
回复
yourenzaibu >
yan717fang 2009-04-23
  • 打赏
  • 举报
回复
给我个意见。谢谢了!
yan717fang 2009-04-23
  • 打赏
  • 举报
回复
那后台还要不要代码 啊?
现在是他们吧html代码放在了一个.html文件中了,不知道怎么调用!这个html页面只能看代码,还切换不到视图界面。播放器的代码:<script language="Javascript" src="js/cnsidebud.js"></script>
<script language="Javascript" src="js/time.js"></script>
<script Language ="Javascript" src="js/imgchg.js"></script>
<script Language="Javascript">
var blnAutoStart = true;
var blnRndPlay = false;
var blnStatusBar = false;
var blnShowVolCtrl = true;
var blnShowPlist = true;
var blnUseSmi = false;
var blnLoopTrk = true;
var blnShowMmInfo =false;
</script>
<script language="JavaScript" src="js/ctrchg.js"></script>
<script Language ="Jscript" FOR=Exobud EVENT=openStateChange(sf)> evtOSChg(sf); </script>
<script Language ="Jscript" FOR=Exobud EVENT=playStateChange(ns)> evtPSChg(ns); </script>
<script Language ="Jscript" FOR=Exobud EVENT=error()> evtWmpError(); </script>
<script Language ="Jscript" FOR=Exobud EVENT=Buffering(bf)> evtWmpBuff(bf); </script>
</HEAD>
<BODY bgcolor="#ADAAA5" style="overflow:hidden;" onLoad="initExobud();show5();">
<OBJECT ID=Exobud CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject" width="0" height="0"
style="position:relative;left:0px; top:0px;width:0px;height:0px;">
<param name="autoStart" value="true">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="currentMarker" value="0">
<param name="enableContextMenu" value="false">
<param name="enableErrorDialogs" value="false">
<param name="enabled" value="true">
<param name="fullScreen" value="false">
<param name="invokeURLs" value="false">
<param name="mute" value="false">
<param name="playCount" value="1">
<param name="rate" value="1">
<param name="uiMode" value="none">
<param name="volume" value="100">
</OBJECT>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#ADAAA5">
<tr>
<td>  </td>
<td width="599"><TABLE width=599 height=26 border=0 align="center" cellpadding=0 cellspacing=0>
<TR>
<TD width=30 height=26 valign=middle background="./img/left.gif" NOWRAP></TD>
<TD width=17 height=26 valign=middle background="./img/lamp.gif" NOWRAP><p align="center"><img name="scope" src="./img/scope_off.gif" width=11 height=11 border=0 onClick="vizExobud();" style="cursor:help;"></td>
<TD width=6 height=26 valign=middle background="./img/bg_1.gif" NOWRAP></td>
<TD width=18 height=26 valign=top background="./img/btn_rndmode_bg.gif" NOWRAP><img name="pmode" src="./img/btn_rndmode_off.gif" border=0 width=18 height=21 onClick="chgPMode();this.blur();" onMouseOver="imgtog('pmode',2);" onMouseOut="imgtog('pmode',3)" style="cursor:hand;" title="模式(S/R)"></td>
<TD width=17 height=26 valign=top background="./img/btn_rept_bg.gif" NOWRAP><img name="rept" src="./img/btn_rept_off.gif" border=0 width=17 height=21 onClick="chkRept();this.blur();" onMouseOver="imgtog('rept',2);" onMouseOut="imgtog('rept',3)" style="cursor:hand;" title="循环(L)"></TD>
<TD width=4 height=26 valign=middle background="./img/bg_2.gif" NOWRAP></td>
<TD width=19 height=26 valign=top background="./img/btn_mute_bg.gif" NOWRAP><img name="vmute" src="./img/btn_mute_off.gif" border=0 width=19 height=21 onClick="wmpMute();this.blur();" onMouseOver="imgtog('vmute',2);" onMouseOut="imgtog('vmute',3);" style="cursor:hand;" title="静音(A)"></TD>
<TD width=16 height=26 valign=top background="./img/btn_vdn_bg.gif" NOWRAP><img name="vdn" src="./img/btn_vdn.gif" border=0 width=16 height=21 onClick="wmpVolDn();this.blur();" onMouseOver="imgtog('vdn',2);" onMouseOut="imgtog('vdn',3)" style="cursor:hand;" title="降音(↑)"></TD>
<TD width=18 height=26 valign=top background="./img/btn_vup_bg.gif" NOWRAP><img name="vup" src="./img/btn_vup.gif" border=0 width=18 height=21 onClick="wmpVolUp();this.blur();" onMouseOver="imgtog('vup',2);" onMouseOut="imgtog('vup',3)" style="cursor:hand;" title="增音(↓)"></TD>
<TD width=5 height=26 valign=middle background="./img/bg_3.gif" NOWRAP></td>
<TD valign=middle width=206 height=26 background="./img/bg_a.gif" NOWRAP> 
<marquee behavior="scroll" scrolldelay=70 scrollamount=2 width=180 height=12>
<span id="disp1" width=150 class="title" align=left>Our Player</span>
<span class="TITLE">    <span id=liveclock width=150 class="time"></span>
    宁永远爱你
</span> </marquee>
<TD width=97 height=26 align=center valign=middle background="./img/bg_b.gif" NOWRAP onClick="chgTimeFmt();this.blur();"><span id="disp2" width=83 class="time" align="center" title ="时间显示(T)" style="cursor:hand;">00:00
| 00:00</span> </TD>
<TD width=5 height=26 valign=middle background="./img/bg_4.gif" NOWRAP></td>
<TD height=26 width=19 valign=top background="./img/btn_stop_bg.gif" NOWRAP><img name="stopt" src="./img/btn_stop.gif" border=0 width=19 height=21 onClick="wmpStop();this.blur();" onMouseOver="imgtog('stopt',2);" onMouseOut="imgtog('stopt',3)" style="cursor:hand;" title="停止(C)"></TD>
<TD height=26 width=17 valign=top background="./img/btn_pauz_bg.gif" NOWRAP><img name="pauzt" src="./img/btn_pauz_off.gif" border=0 width=17 height=21 onClick="wmpPP();this.blur();" onMouseOver="imgtog('pauzt',2);" onMouseOut="imgtog('pauzt',3)" style="cursor:hand;" title="暂停/继续(X)"></TD>
<TD height=26 width=16 valign=top background="./img/btn_prev_bg.gif" NOWRAP><img name="prevt" src="./img/btn_prev.gif" border=0 width=16 height=21 onClick="playPrev();this.blur();" onMouseOver="imgtog('prevt',2);" onMouseOut="imgtog('prevt',3)" style="cursor:hand;" title="上一首(←)"></TD>
<TD height=26 width=16 valign=top background="./img/btn_play_bg.gif" NOWRAP><img name="playt" src="./img/btn_play.gif" border=0 width=16 height=21 onClick="startExobud();this.blur();" onMouseOver="imgtog('playt',2);" onMouseOut="imgtog('playt',3)" style="cursor:hand;" title="播放(P/V)"></TD>
<TD height=26 width=17 valign=top background="./img/btn_next_bg.gif" NOWRAP><img name="nextt" src="./img/btn_next.gif" border=0 width=17 height=21 onClick="playNext();this.blur();" onMouseOver="imgtog('nextt',2);" onMouseOut="imgtog('nextt',3)" style="cursor:hand;" title="下一首(→)"></TD>
<TD width=5 height=26 valign=middle background="./img/bg_5.gif" NOWRAP></td>
<TD height=26 width=21 valign=top background="./img/btn_plist_bg.gif" NOWRAP><img name="plist" src="./img/btn_plist.gif" border=0 width=21 height=21 onClick="openPlist();this.blur();" onMouseOver="imgtog('plist',2);" onMouseOut="imgtog('plist',3)" style="cursor:hand;" title="播放清单(M)"></TD>
<TD width=30 height=26 valign=middle background="./img/right.gif" NOWRAP></td>
</tr>
蓝海D鱼 2009-04-23
  • 打赏
  • 举报
回复
播放器 直接 放在页面上


<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="22"></td>
<td id="tdwmp">
<object id="Player" type="application/x-oleobject" height="497" standby="loading microsoft? windows? media player components..."
width="640" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" viewastext>
<param name="filename" value="">
<param name="autostart" value="true">
<param name="showcontrols" value="true">
<param name="showstatusbar" value="true">
<param name="enablecontextmenu" value="0">
<param name="volume" value="0">
</object>
</embed>
</td>
</tr>
</table>

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧