不要用超连接来直接指示mp3文件位置,而是加入一段<object>标记,引用windows media player或者realplayer之类的播放器控件,并通过参数来指示播放的mp3文件位置。
解决方案 »
- 树的节点拖动!!求救!!
- 三层分离不想在逻辑曾声明SqlDataReader各类型的变量想在一个单独的类中实现[高手指点]
- javascript验证文本框的输入只能是数字或者汉字
- 急啊,在APS。NET中怎么使用双引号,为什么这样不行:string p="\"+dsimg.Tables["ImageChange"].Rows[m]["DisplayImage"].ToString()+"\
- 为什么会出现该目录??
- 请教一个ASP.net2.0的问题
- 谁能解决下面的问题!我就服了你,请客吃饭怎么着都行!急着用,哪位高手帮下忙,谢谢!!!
- 在给datagrid添加删除时谈出确认框的客户端操作时出现“语句未结束”的错误?
- web页中弹出对话框的问题
- webfrom之间如何传递参数
- 在Web方式下,怎么生成Excel那种的多维透视表?
- datagrid如何数据自动分列
补 充:用以上代码可以播放Flash。得到Flash的地址(其文件格式一般为.swf)之后,操作方法相同。范例一:<embed src=http://www.flash8.net/upload/2003/9/12/20039121239347274.swf type=audio/x-pn-realaudio-plugin console=clip1 controls=imagewindow,controlpanel,statusbar height=245 width=450 autostart=false>范例二:<embed src=http://www.flash8.net/upload/2003/9/12/20039121239347274.swf width=450 height=245 type=application/x-shockwave-flash> 可以看出,如果是想Flash,就用范例二的代码,一来代码简短,二来效果上多了下载进度尺。
不过你得先给分!
<TD><IMG SRC="images/Spacer.gif" WIDTH=1 HEIGHT=19></TD></TR>
<TR><TD><IMG SRC="images/player_07.gif" WIDTH=91 HEIGHT=45></TD>
<TD><IMG SRC="images/Spacer.gif" WIDTH=1 HEIGHT=45></TD>
</TR><TR><TD COLSPAN=8 background="images/player_08.gif" align="center" valign="middle"><object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer" width="265" height="35">
<param name="AutoStart" value="-1">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowPositionControls" value="0">
<param name="ShowTracker" value="-1">
<param name=Filename value="http://music.fancysky.net/data/qt/heji/yingshijinqu/16.mp3">
</object><
这个是什么东西??
好象什么都没有啊 你卖广告啊?
<html>
<HTML>
<HEAD>
<TITLE>CnSide MP V1.0.1</TITLE>
<META name="Author" content="CnSide MP V1.0.1, Hoja T">
<META name="Keywords" content="CnSide MP V1.0.1 MPlaylist">
<META name="Description" content="mp3,asf,wav,mid,网上媒体播放">
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE TYPE="text/css">
<!--
A:LINK
{
COLOR: SILVER;
TEXT-DECORATION: NONE ;
}
A:HOVER
{
COLOR: WHITE;
TEXT-DECORATION: NONE ;
}
A:ACTIVE
{
COLOR: WHITE;
TEXT-DECORATION: NONE ;
}
A:VISITED
{
COLOR: SILVER;
TEXT-DECORATION: NONE ;
}
BODY
{
MARGIN: 0PX 0PX 0PX 0PX;
BACKGROUND:WHITE;
CURSOR:CROSSHAIR;
}
.TITLE
{
FONT-FAMILY: "ARIAL", "HELVETICA", "SANS-SERIF";
FONT-SIZE: 9PT;
COLOR:#EC008C;
;
}
.TIME
{
FONT-FAMILY: "ARIAL", "HELVETICA", "SANS-SERIF";
FONT-SIZE: 9PT;
COLOR:DARKBLUE;
}
-->
</STYLE>
<SCRIPT Language="JavaScript" src="cnsidebud.js"></SCRIPT>
<SCRIPT Language="JavaScript"><!--
//基本功能设置,true为开放,false为关闭。
//定义是否自动播放
var blnAutoStart = false;
//定义是否循序播放
var blnRndPlay = false;
//定义是否显示状态栏
var blnStatusBar = true;
//定义是否显示音控状态
var blnShowVolCtrl = true;
//定义是否允许显示播放清单
var blnShowPlist = true;
//定义是否使用SMI模式(如无需要请勿修改)
var blnUseSmi = false;
//定义是否循环播放
var blnLoopTrk = true;
//定义是否跳出歌曲信息
var blnShowMmInfo =false;
--></SCRIPT>
<script language="JavaScript">mkList("http://127.0.0.1/111.asf");
</script>
<script language="JavaScript" src="time.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>
<SCRIPT Language ="JavaScript" src="imgchg.js"></SCRIPT>
</HEAD><BODY onLoad="initExobud();show5();" ondragstart="return false" onselectstart="return false" style="overflow:hidden;" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>
<!-- 调用Windows Media 7.0播放器 -->
<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">
<TABLE border=0 cellspacing=0 cellpadding=0 height=25 width=100%>
<TR>
<TD width=25 height=25 background="./img/bg.gif" align=center valign=middle NOWRAP><img name="scope" src="./img/scope_off.gif" width=20 height=21 border=0 onClick="vizExobud();" style="cursor:help;"></TD>
<TD width=11 height=25 background="./img/bg1l.gif" NOWRAP> </TD>
<TD valign=middle width=215 height=25 background="./img/bg1c.gif" NOWRAP>
<marquee behavior="scroll" scrolldelay=70 scrollamount=2 width=200 height=12>
<span id="disp1" width=210 class="title" align=left>CnSide MP</span>
<span id=liveclock width=150 class="title"> </span>
</marquee>
</TD>
<TD width=11 height=25 background="./img/bg1r.gif" NOWRAP> </TD>
<TD width=11 height=25 background="./img/bg2l.gif" NOWRAP> </TD>
<TD width=105 height=25 align=center valign=middle background="./img/bg2c.gif" NOWRAP onClick="chgTimeFmt();this.blur();">
<span id="disp2" width=105 class="time" align="center" title ="时间显示(Elaps/Laps)" style="cursor:hand;">00:00 | 00:00</span>
</TD>
<TD width=11 height=25 background="./img/bg2r.gif" NOWRAP> </TD>
<TD width=5 height=25 background="./img/bg.gif" NOWRAP> </TD>
<TD width=15 height=25 valign=bottom background="./img/bg.gif" NOWRAP><img name="vmute" src="./img/btn_mute_off.gif" border=0 width=15 height=25 onClick="wmpMute();this.blur();" onMouseOver="imgtog('vmute',2);" onMouseOut="imgtog('vmute',3);" style="cursor:hand;" title="静音(Mute)"></TD>
<TD width=15 height=25 valign=bottom background="./img/bg.gif" NOWRAP><img name="vdn" src="./img/btn_vdn.gif" border=0 width=15 height=25 onClick="wmpVolDn();this.blur();" onMouseOver="imgtog('vdn',2);" onMouseOut="imgtog('vdn',3)" style="cursor:hand;" title="降音"></TD>
<TD width=15 height=25 valign=bottom background="./img/bg.gif" NOWRAP><img name="vup" src="./img/btn_vup.gif" border=0 width=15 height=25 onClick="wmpVolUp();this.blur();" onMouseOver="imgtog('vup',2);" onMouseOut="imgtog('vup',3)" style="cursor:hand;" title="增音"></TD>
<TD width=5 height=25 background="./img/bg.gif" NOWRAP> </TD>
<TD height=25 width=15 valign=bottom background="./img/bg.gif" NOWRAP><img name="pmode" src="./img/btn_rndmode_off.gif" border=0 width=15 height=25 onClick="chgPMode();this.blur();" onMouseOver="imgtog('pmode',2);" onMouseOut="imgtog('pmode',3)" style="cursor:hand;" title="模式"></TD>
<TD height=25 width=15 valign=bottom background="./img/bg.gif" NOWRAP><img name="rept" src="./img/btn_rept_off.gif" border=0 width=15 height=25 onClick="chkRept();this.blur();" onMouseOver="imgtog('rept',2);" onMouseOut="imgtog('rept',3)" style="cursor:hand;" title="循环"></TD>
<TD width=5 height=25 background="./img/bg.gif" NOWRAP> </TD>
<TD height=25 width=24 valign=bottom background="./img/bg.gif" NOWRAP><img name="prevt" src="./img/btn_prev.gif" border=0 width=24 height=25 onClick="playPrev();this.blur();" onMouseOver="imgtog('prevt',2);" onMouseOut="imgtog('prevt',3)" style="cursor:hand;" title="上一首"></TD>
<TD height=25 width=24 valign=bottom background="./img/bg.gif" NOWRAP><img name="pauzt" src="./img/btn_pauz_off.gif" border=0 width=24 height=25 onClick="wmpPP();this.blur();" onMouseOver="imgtog('pauzt',2);" onMouseOut="imgtog('pauzt',3)" style="cursor:hand;" title="暂停/继续"></TD>
<TD height=25 width=24 valign=bottom background="./img/bg.gif" NOWRAP><img name="stopt" src="./img/btn_stop.gif" border=0 width=24 height=25 onClick="wmpStop();this.blur();" onMouseOver="imgtog('stopt',2);" onMouseOut="imgtog('stopt',3)" style="cursor:hand;" title="停止"></TD>
<TD height=25 width=24 valign=bottom background="./img/bg.gif" NOWRAP><img name="playt" src="./img/btn_play.gif" border=0 width=24 height=25 onClick="startExobud();this.blur();" onMouseOver="imgtog('playt',2);" onMouseOut="imgtog('playt',3)" style="cursor:hand;" title="播放"></TD>
<TD height=25 width=24 valign=bottom background="./img/bg.gif" NOWRAP><img name="nextt" src="./img/btn_next.gif" border=0 width=24 height=25 onClick="playNext();this.blur();" onMouseOver="imgtog('nextt',2);" onMouseOut="imgtog('nextt',3)" style="cursor:hand;" title="下一首"></TD>
<TD width=5 height=25 background="./img/bg.gif" NOWRAP> </TD>
<TD height=25 valign=bottom background="./img/bg.gif" NOWRAP><img name="plist" src="./img/btn_plist.gif" border=0 width=24 height=25 onClick="openPlist();this.blur();" onMouseOver="imgtog('plist',2);" onMouseOut="imgtog('plist',3)" style="cursor:hand;" title="歌曲列表"></TD>
<TD height=25 background="./img/bg.gif" NOWRAP> </TD>
</TR><TR><TD colspan=23 height=0>
<div id="capText" style="width:100%;height:60;font-size:11px;color:white;background-color:#555555;display:none;"><P>CnSide MP</div>
</TD>
</TR>
</TABLE>
<SCRIPT Language="JavaScript"><!--
function mkList(u,t,s,f){
var cu=u;
var ct=t;
var cs=s;
var cf=f;
var idx=0; if(objMmInfo == null){ objMmInfo=new Array(); idx=0;}
else{ idx=objMmInfo.length;}
if(u=="" || u==null){cu="mms://";}
if(t=="" || t==null){ct="未知歌曲";}
if(f=="f" || f=="F"){cf="f";}
else{cf="t"; intSelMmCnt=intSelMmCnt+1;} if(blnUseSmi){ objMmInfo[idx]=new mkMmPath(cu,ct,cf,cs);}
else{objMmInfo[idx]=new mkMmPath(cu,ct,cf);} intActMmCnt=intSelMmCnt;
intMmCnt=objMmInfo.length;
}
--></SCRIPT>
</BODY>
</HTML>
我查看生成的源代码,跟html的一模一样。我把这些代码另存为htm文件,却又能播放,这到底是怎么回事呀?哪位高手救救命呀!!!!!!!