CodeMan系列教程------各大视频网站视频调用代码

添加人:hrj411269零级(142分)   添加时间:2008-06-05    阅读次数:449  收藏此教程

TUDOU 视频 调用代码 (可全屏幕,无土豆连接,点更多还在原窗口播放)

1.       <SCRIPT language=JavaScript>  

2.       url ="6683174";//节目参数   

3.       document.writeln('<IFRAME height=415 marginWidth=0 marginHeight=0 src="tudou.html?'+url+'" frameBorder=0 width=488 scrolling=no></IFRAME>');   

4.        

5.       tudou.html

6.       </SCRIPT> 

7.     <html>  

8.     <head>  

9.     <title></title>  

10.  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">  

11.  </head>  

12.  <body leftmargin="0" topmargin="0">  

13.  <script language=javascript>  

14.  var searchString = location.search   

15.  var pos = searchString.indexOf ("?")   

16.  if (pos == 0) {url = searchString.substr (1, searchString.length)}   

17.  var play = url.split("&");   

18.  document.write(play[1]);   

19.  if (play[1]!="ok") {   

20.  document.write('<iframe vspace="-130" hspace="-328" width="743" height="545" src="tudou.html?'+url+'&ok" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>');   

21.  }else{   

22.  document.write('<table height=80><tr><td> </td></tr></table><object width="100%" height="100%" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" align="middle">');   

23.  document.write('<param name="allowScriptAccess" value="always">');   

24.  document.write('<param name="allowFullScreen" value="true">');   

25.  document.write('<param name="movie" value="http://www.tudou.com/static/bin/player.swf">');   

26.  document.write('<param name="flashvars" value="iid='+url+'">');   

27.  document.write('<embed src="http://www.tudou.com/static/bin/player.swf" flashvars="iid='+url+'" allowFullScreen="true" allowScriptAccess="always" quality="high" bgcolor="#ffffff" width="488" height="415" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');   

28.  document.write('</object>');   

29.  }   

30.  </script>  

31.  </body>  

32.  </html>  

 

 

youku视频调用代码去连接

调用参数代码

1.      <SCRIPT language=JavaScript>   

2.      var url ="";//节目参数   

3.      document.writeln('<IFRAME height=415 marginWidth=0 marginHeight=0 src=" yoqoo.html?'+url+'" frameBorder=0 width=488 scrolling=no></IFRAME>');  

4.       yoqoo.html 源代码

5.      </SCRIPT>  

  1. <html>  
  2. <head>  
  3. <title></title>  
  4. </head>  
  5. <body leftmargin="0" topmargin="0">  
  6. <script type="text/javascript">  
  7. if(typeof deconcept=="undefined"){var deconcept=new Object();}   
  8. if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}   
  9. if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}   
  10. deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){   
  11. if(!document.createElement||!document.getElementById){return;}   
  12. this.DETECT_KEY=_b?_b:"detectflash";   
  13. this.skipDetect=true;   
  14. this.params=new Object();   
  15. this.variables=new Object();   
  16. this.attributes=new Array();   
  17. if(_1){this.setAttribute("swf",_1);}   
  18. if(id){this.setAttribute("id",id);}   
  19. if(w){this.setAttribute("width",w);}   
  20. if(h){this.setAttribute("height",h);}   
  21. if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}   
  22. this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);   
  23. if(c){this.a