开发者

Inject String into Page Source in Real Time...Possible?

开发者 https://www.devze.com 2022-12-15 06:38 出处:网络
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 timestamp开发者_C百科s of Divx Videos..

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 timestamp开发者_C百科s 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&amp;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&amp;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!


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.

<input type="button" value="Play" onclick="javascript:loadParams();" />

<span id="myParams"></span>

<script language="javascript">
   function loadParams()
   {
      document.getElementById('myParams').innerHTML = "<param>";
   }
</script>
0

精彩评论

暂无评论...
验证码 换一张
取 消