js视频调用返回值如何输出?
这是一个支持多视频格式代码:<script language="JavaScript" type="text/JavaScript">
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.,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. 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);
}
</script>
我想调用function pv_m(文件地址, 宽度, 高度)
如何在页面调用空上面的代码,代码怎么写
直接这样写可以吗?
<%function pv_m(1.wam, 300, 300)%>