实时将字符串注入页面源...可能吗?
我想知道我们是否可以实时向 pagesource 添加一个字符串。 举个例子,我想做的就是控制 Divx 视频的时间戳..
让我给你举个例子..
http://www.movshare.net/embed/ v5alr3gpmu2nt/?width=720&height=306
当我们按下此视频链接中的播放按钮时,它将生成以下参数
<object width="640" height="318"
id="objectmvshre"
codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"
classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616">
<param value="none"
name="custommode"/> <param
value="false" name="autoPlay"/> <param
value="false" name="bannerEnabled"/>
<param value="auto"
name="bufferingMode"/>
<param
value="http://stream.movshare.net/v5alr3gpmu2nt.avi?8870706d6e17b351bc49a277521bce4f73877a79c281bab9c057f9fe55db14d22958952baaca29&ec_rate=45"
name="src"/>
<embed width="640" height="318"
pluginspage="http://go.divx.com/plugin/download/" custommode="none" autoplay="false"
bufferingmode="auto"
bannerenabled="false" id="embedmvshre"
src="http://stream.movshare.net/v5alr3gpmu2nt.avi?8870706d6e17b351bc49a277521bce4f73877a79c281bab9c057f9fe55db14d22958952baaca29&ec_rate=45"
type="video/divx"/>
</object>
为了能够控制 Divx 播放器的时间戳,我应该能够添加
<param>name="timecallback" value="XXX"/>
有没有办法注入此参数当我在页面上浏览视频时进入页面源?
如果可能,并且需要深度编码,请告诉我.. 我想在 Elance 或 Scriptlance 网站上打开一个与此相关的项目。
谢谢!
I wonder if we can add a string into pagesource in real time..
to give an example, and the thing I want to do is to control timestamps of Divx Videos..
Let me give u an example..
http://www.movshare.net/embed/v5alr3gpmu2nt/?width=720&height=306
when we push play button in this video link it will generate following parameters
<object width="640" height="318"
id="objectmvshre"
codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"
classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616">
<param value="none"
name="custommode"/> <param
value="false" name="autoPlay"/> <param
value="false" name="bannerEnabled"/>
<param value="auto"
name="bufferingMode"/>
<param
value="http://stream.movshare.net/v5alr3gpmu2nt.avi?8870706d6e17b351bc49a277521bce4f73877a79c281bab9c057f9fe55db14d22958952baaca29&ec_rate=45"
name="src"/>
<embed width="640" height="318"
pluginspage="http://go.divx.com/plugin/download/" custommode="none" autoplay="false"
bufferingmode="auto"
bannerenabled="false" id="embedmvshre"
src="http://stream.movshare.net/v5alr3gpmu2nt.avi?8870706d6e17b351bc49a277521bce4f73877a79c281bab9c057f9fe55db14d22958952baaca29&ec_rate=45"
type="video/divx"/>
</object>
To be able to control timestamp of a Divx Player, I should be able to add
<param>name="timecallback" value="XXX"/>
Is there a way to inject this parameter into page source while I'm browsing a video on a page ?
If it is possible, and if it requires deep coding, please let me know..
I would want to open a project about this on Elance or Scriptlance sites..
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我只需在页面上添加一个
标记,然后将 span.innerHTML 的内容填充为您要添加的参数标记。
I would just have a
<span>
tag on the page and then populate the contents of that span.innerHTML to be the parameter tag you want to add.