posts - 66,  comments - 40,  trackbacks - 0

javaScript:
function fnOpen(a){
   var str=play(a);
   window.showModalDialog("play.html",str,"dialogHeight: 360px; dialogWidth: 325px; dialogTop: 370px; dialogLeft: 791px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;");
}


function play(o){
 
//mpeg
var a="<object classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' id='MediaPlayer1' width='300' height='300'>";
      a=a+"<param name='AudioStream' value='-1'>";
      a=a+"<param name='AutoSize' value='0'>";
      a=a+"<param name='AutoStart' value='-1'>";
      a=a+"<param name='AnimationAtStart' value='-1'>";
     a=a+"<param name='AllowScan' value='-1'>";
     a=a+"<param name='AllowChangeDisplaySize' value='-1'>";
     a=a+"<param name='AutoRewind' value='0'>";
     a=a+"<param name='Balance' value='0'>";
     a=a+"<param name='BaseURL' value>";
     a=a+"<param name='BufferingTime' value='5'>";
     a=a+"<param name='CaptioningID' value>";
     a=a+"<param name='ClickToPlay' value='-1'>";
     a=a+"<param name='CursorType' value='0'>";
     a=a+"<param name='CurrentPosition' value='-1'>";
     a=a+"<param name='CurrentMarker' value='0'>";
     a=a+"<param name='DefaultFrame' value>";
     a=a+"<param name='DisplayBackColor' value='0'>";
     a=a+"<param name='DisplayForeColor' value='16777215'>";
     a=a+"<param name='DisplayMode' value='0'>";
     a=a+"<param name='DisplaySize' value='2'>";
     a=a+"<param name='Enabled' value='-1'>";
     a=a+"<param name='EnableContextMenu' value='-1'>";
     a=a+"<param name='EnablePositionControls' value='-1'>";
     a=a+"<param name='EnableFullScreenControls' value='0'>";
     a=a+"<param name='EnableTracker' value='-1'>";
     a=a+"<param name='Filename' value='"+o+"'>";
     a=a+"<param name='InvokeURLs' value='-1'>";
     a=a+"<param name='Language' value='-1'>";
     a=a+"<param name='Mute' value='0'>";
     a=a+"<param name='PlayCount' value='1'>";
     a=a+"<param name='PreviewMode' value='0'>";
     a=a+"<param name='Rate' value='1'>";
     a=a+"<param name='SAMILang' value>";
     a=a+"<param name='SAMIStyle' value>";
     a=a+"<param name='SAMIFileName' value>";
     a=a+"<param name='SelectionStart' value='-1'>";
     a=a+"<param name='SelectionEnd' value='-1'>";
     a=a+"<param name='SendOpenStateChangeEvents' value='-1'>";
     a=a+"<param name='SendWarningEvents' value='-1'>";
     a=a+"<param name='SendErrorEvents' value='-1'>";
     a=a+"<param name='SendKeyboardEvents' value='0'>";
     a=a+"<param name='SendMouseClickEvents' value='0'>";
     a=a+"<param name='SendMouseMoveEvents' value='0'>";
     a=a+"<param name='SendPlayStateChangeEvents' value='-1'>";
     a=a+"<param name='ShowCaptioning' value='0'>";
     a=a+"<param name='ShowControls' value='-1'>";
     a=a+"<param name='ShowAudioControls' value='-1'>";
     a=a+"<param name='ShowDisplay' value='0'>";
     a=a+"<param name='ShowGotoBar' value='0'>";
     a=a+"<param name='ShowPositionControls' value='-1'>";
     a=a+"<param name='ShowStatusBar' value='-1'>";
     a=a+"<param name='ShowTracker' value='-1'>";
     a=a+"<param name='TransparentAtStart' value='0'>";
     a=a+"<param name='VideoBorderWidth' value='0'>";
     a=a+"<param name='VideoBorderColor' value='0'>";
     a=a+"<param name='VideoBorder3D' value='0'>";
     a=a+"<param name='Volume' value='-40'>";
     a=a+"<param name='WindowlessVideo' value='0'>";
     a=a+"</object>";
    return a;

//mp3
<P align=center>
<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=60 width=352>
 <param name="_ExtentX" value="9313">
 <param name="_ExtentY" value="1588">
 <param name="AUTOSTART" value="-1">
 <param name="SHUFFLE" value="0">
 <param name="PREFETCH" value="0">
 <param name="NOLABELS" value="0">
 <param name="SRC" value="http://ent.tzinfo.net/music/song/kd4.mp3";>
 <param name="CONTROLS" value="ControlPanel,StatusBar">
 <param name="CONSOLE" value="Clip1">
 <param name="LOOP" value="-1">
 <param name="NUMLOOP" value="0">
 <param name="CENTER" value="0">
 <param name="MAINTAINASPECT" value="0">
 <param name="BACKGROUNDCOLOR" value="#000000"></OBJECT></P>

//rm
<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=53 width=352 id="aaaa">
 <param name="_ExtentX" value="9313">
 <param name="_ExtentY" value="1402">
 <param name="AUTOSTART" value="-1">
 <param name="SHUFFLE" value="0">
 <param name="PREFETCH" value="0">
 <param name="NOLABELS" value="0">
 <param name="SRC" value="http://172.19.12.12/aa.rm";>
 <param name="CONTROLS" value="ControlPanel,StatusBar">
 <param name="CONSOLE" value="Clip1">
 <param name="LOOP" value="-1">
 <param name="NUMLOOP" value="0">
 <param name="CENTER" value="0">
 <param name="MAINTAINASPECT" value="0">
 <param name="BACKGROUNDCOLOR" value="#000000"></OBJECT>

}



jsp:

<td><% if(m.getMusic1()!=null){ %><a href=javascript:fnOpen('..<%=m.getMusic1()%>')> 播放</a><% } %>&nbsp;</td>




play.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>MUSIC</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-8859-1">
<META NAME="AUTHOR" CONTENT="InetSDK">
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="ROBOTS" CONTENT="noindex">
<SCRIPT>
window.onload=fnInit;
function fnInit(){
 document.write(window.dialogArguments);
}
</SCRIPT>
</HEAD>

<BODY>
</BODY>
</HTML>

posted on 2006-05-18 17:19 happytian 阅读(536) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 
<2024年11月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

Welcome here, my friend!

常用链接

留言簿(12)

随笔档案(66)

文章分类

文章档案(63)

web

最新随笔

搜索

  •  

积分与排名

  • 积分 - 88614
  • 排名 - 646

最新评论

阅读排行榜

评论排行榜