本帖最后由 antony410 于 2017-4-11 21:44 编辑
内网网页源代码1,如下<object name="mplay_video" width="100%" height="100%" tabindex="0" id="mplay_video" data="http://xxxxx.com/clp/res/js/jwplayer.flash.swf" type="application/x-shockwave-flash" bgcolor="#000000"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="seamlesstabbing" value="true"><param name="wmode" value="opaque"></object>
内网网页源代码2,如下</script><!-- 主体内容 [[-->
<div class="container mainContainer">
<div class="row">
<!-- 主体左边内容 -->
<div class="col-md-9 mt10">
<div class="img-responsive mplay_video_wrapper">
<div name="mplay_video" id="mplay_video"></div>
<script type="text/javascript">
jwplayer("mplay_video").setup({
file: "http://xxxxx.com/clp/currculumlesson/2690/2a6168e3-cff3-4697-8ccd-d9996f7ac780.mp4",
image: "http://xxxxxx.com/clp/curriculum/20170407/ce3288a5-a88a-44da-ae42-909bd662ff3e.JPG",
allowscriptaccess:"sameDomain",
allowfullscreen:"true",
width:"100%",
height:"99%",
rtmp: {
bufferlength: 10
},
primary: "flash"
});
</script>
</div>
</div>
我写的代码1:$oIE = _IEAttach("http://xxxx","url")
_IELoadWait($oIE)
$oID = _IEGetObjById($oIE, "mplay_video")
_IEAction($oID, "focus")
_IEAction($oID, "Click")
我写的代码2:$oIE = _IEAttach("http://xxxx","url")
_IELoadWait($oIE)
$oID =_IEGetObjByName($oIE, "mplay_video")
_IEAction($oID, "focus")
_IEAction($oID, "Click")
环境:win7x64 IE11,SciTE Version 3.6.2
是一个网页视频中间处的播放按钮,
无论是代码1还是代码2,_IEAction返回值都是0。
请教是哪里出了问题?
点击没有反应? |