光线cms、马克斯MaxCMS影视系统调用吉吉影音替换快播播放器的方法

  var jjvod_w = 650;//播放器宽度

  var jjvod_h = 500;//播放器高度

  var jjvod_ad = 'http://player.jjvod.com/ad.html';//缓冲和暂停广告

  var jjvod_soft = '/js/jjvod_install.html'; //下载地址,渠道可直接在下载页面设置

  var jjvod_notice = '/js/notice.html'; //非IE内核提示页面

  

  if(typeof(VideoListJson) == 'undefined'){

  VideoListJson = [];

  VideoInfoList = VideoInfoList.split('$$$');

  for(var i = 0; i < VideoInfoList.length; i++){

  var vod = VideoInfoList[i].split('$$');

  VideoListJson[i] = [vod[0], vod[1].split('#')];

  }

  }

  

  viewplay2 = viewplay;

  viewplay = function(param1,param2){

  getplay = function(param1, param2) {

  var x = VideoListJson,mov,Arr;

  if (x.length > 0) {

  mov = new String(VideoListJson[param1][1][param2]);

  Arr = mov.split('$');

  return [VideoListJson[param1][0], Arr[0], Arr[1]];

  } else {

  return ['', '', ''];

  }

  };

  var a = VideoListJson[param1][1][param2];

  playdata = getplay(param1, param2); // 0 -> 集 1 -> 地址

  

var playername= playdata[0];//播放器名称

  var vodname = playdata[1];//影片名称

  var url = playdata[2];//播放地址

  if(playername=="吉吉影音" || playername=="jjvod"){

  addjjvod(url);

  }else{

  return viewplay2(param1,param2);

  }

  }

  

//播放状态控制

  function jjvodstatus(offest){

  if(document.getElementById('jjvodPlayer').PlayState==3){

  document.getElementById('jjad').style.display='none';

  }else if(document.getElementById('jjvodPlayer').PlayState==2 || document.getElementById('jjvodPlayer').PlayState==4){

  document.getElementById('jjad').style.display='block';

  }

  }

  //JJVOD代码

  function addjjvod(url){

  if(!!window.ActiveXObject || "ActiveXObject" in window){

  adh=jjvod_h-63;

  document.write("

");

  document.write('

');

  document.write("");

  document.write("

");

  setInterval('jjvodstatus()','1000');

  }else{

  document.write('');

  }

  }