日期:2014-05-16 浏览次数:20346 次
function pv_m(u, w, h){ var pv=''; pv += '<object width="'+w+'" height="'+h+'" id="iask_v" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'; pv += '<param name="FileName" value="'+u+'">'; pv += '<param name="AutoStart" value="1">'; pv += '<param name="AutoSize" value="1">'; pv += '<param name="ShowControls" value="1">'; pv += '<param name="ShowPositionControls" value="0">'; pv += '<param name="ShowAudioControls" value="1">'; pv += '<param name="ShowTracker" value="1">'; pv += '<param name="ShowDisplay" value="0">'; pv += '<param name="ShowStatusBar" value="1">'; pv += '<param name="ShowGotoBar" value="0">'; pv += '<param name="ShowCaptioning" value="0">'; pv += '<param name="PlayCount" value="1">'; pv += '<param name="AnimationAtStart" value="0">'; pv += '<param name="TransparentAtStart" value="0">'; pv += '<param name="AllowScan" value="0">'; pv += '<param name="EnableContextMenu" value="0">'; pv += '<param name="ClickToPlay" value="0">'; pv += '<param name="InvokeURLs" value="1">'; pv += '<param name="DefaultFrame" value="">'; pv += '<embed src="'+u+'" width="'+w+'" height="'+h+'" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&;sbp=mediaplayer&ar=media&sba=plugin&" name="MediaPlayer" showcontrols="1" showpositioncontrols="0" showaudiocontrols="1" showtracker="1" showdisplay="0" showstatusbar="1" autosize="0" showgotobar="0" showcaptioning="0" autostart="1" autorewind="0" animationatstart="0" transparentatstart="0" allowscan="1" enablecontextmenu="1" clicktoplay="0" invokeurls="1" defaultframe=""></embed>'; pv += '</object>'; document.write(pv); } function player(url){ document.getElementById("player5").innerHTML= "script type='text/javascript'>"+ "+pv_m("+url+", 960, 600)"+ "</script>" }
<div id="player5" style="width: 960px; margin: 0px; border: solid 5px #50031a; color: #ffffff;"> <script type="text/javascript"> pv_m("<s:property value="#request.movie.address"/>", 960, 600) </script> </div> <a onclick="javascript:player('F:/Media/铁拳:血之复仇/铁拳:血之复仇_A.mp4')" href="javascript:void(0)">第1集</a> <a onclick="javascript:player('F:/Media/铁拳:血之复仇/铁拳:血之复仇_B.mp4')" href="javascript:void(0)">第2集</a>