`
tomEnjoy
  • 浏览: 141927 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

播放一个影音文件

    博客分类:
  • java
 
阅读更多
js 代码
 
  1. onClick="onClickToPlay('surq%3B..dwnevlurusd%60l%2Fcebiho%60%2Fbnl.89110.551447.4.e16000411001101110%5E%7B%2Fvlw%3Eunjdo%3C8D2C9E65G60B68D350%409BE21%405E0E07012%408093094B43001G9E00CG84B%40CBD886C36E0D58BD1D414%40022B55E4C264B294C758E8DCD29C15C160G48%40236G372GC45E9EE531BB338C4B3B72DEG12DB5E%27bnoudouHoedy%3C0%27bnoudouHe%3C0352137', '我和僵尸有个约会1[1]', ',我和僵尸有个约会1[1]', '1', '1243026', '1')"  
js 代码
  1. function onClickToPlay(playurl, playName, contentFAName, mtype, contentId, contentIndex)
  2. {
  3. if(typeof(playurl)=="undefined") playurl=""
  4. if(typeof(playName)=="undefined") playName=""
  5. if(typeof(contentFAName)=="undefined") contentFAName=""
  6. if(typeof(mtype)=="undefined") mtype=""
  7. if(typeof(contentId)=="undefined") contentId=""
  8. if(typeof(contentIndex)=="undefined") contentIndex="0"
  9. playerurl += "?playurl=" + playurl;
  10. playerurl += "&playName=" + playName;
  11. playerurl += "&contentFAName=" + contentFAName;
  12. playerurl += "&mtype=" + mtype;
  13. playerurl += "&contentId=" + contentId;
  14. playerurl += "&contentIndex=" + contentIndex;
  15. self.name="WinPlayer";
  16. self.resizeTo("600","400");
  17. var winPlayer=window.open( playerurl,'_self','scrollbars=no,resizable=yes,width=600,height=400',true);
  18. // var winPlayer=window.open( playerurl,'WinPlayer','scrollbars=no,resizable=yes,width=600,height=400',true);
  19. winPlayer.name = 'WinPlayer';
  20. // window.close();
  21. }
js 代码
  1. //播放一个影音文件
  2. function openPlay(url){
  3. if(url==''){
  4. return;
  5. }
  6. var popUpSizeX=844;
  7. var popUpSizeY=541;
  8. var popUpLocationX=Math.round((screen.width-popUpSizeX)/2);
  9. var popUpLocationY=Math.round((screen.height-popUpSizeY)/2);
  10. if (popUpLocationX<0) popUpLocationX=0;
  11. if (popUpLocationY<0) popUpLocationY=0;
  12. var splashWin = window.open(url,'MovieDetail','width='+popUpSizeX+',height='+popUpSizeY+',top='+popUpLocationX+',left='+popUpLocationY+',toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1');
  13. splashWin.focus();
  14. }
  15. >影音
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics