123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491 |
- function ckcpt() {
- var cpt = '';
- return cpt;
- }
- function ckstyle() {
- var ck = {
- cpath: '',
-
- language: '',
-
- flashvars: '',
-
- setup: '1,1,1,1,1,2,0,1,0,0,0,1,200,0,2,1,0,1,1,1,1,10,3,0,1,2,3000,0,0,0,0,1,1,1,1,0,1,250,0,90,0,0,0',
-
- pm_bg: '0x000000,100,230,180',
-
- mylogo: 'null',
-
- pm_mylogo: '1,1,-100,-55',
-
- logo: 'null',
-
- pm_logo: '2,0,-100,20',
-
- control_rel: 'related.swf,ckplayer/related.xml,0',
-
- control_pv: 'Preview.swf,105,2000',
-
- pm_repc: '',
-
- pm_spac: '|',
-
- pm_fpac: 'file->f',
-
- pm_advtime: '2,0,-110,10,0,300,0',
-
- pm_advstatus: '1,2,2,-200,-40',
-
- pm_advjp: '1,1,2,2,-100,-40',
-
- pm_padvc: '2,0,-13,-13',
-
- pm_advms: '2,2,-46,-67',
-
- pm_zip: '1,1,-20,-8,1,0,0',
-
-
- pm_advmarquee: '1,2,50,-70,50,20,0,0x000000,50,0,20,1,30,2000',
-
- pm_glowfilter:'1,0x01485d, 100, 6, 3, 10, 1, 0, 0',
-
- advmarquee: escape(''),
-
-
- mainfuntion:'',
-
- flashplayer:'',
-
- calljs:'ckplayer_status,ckadjump,playerstop,ckmarqueeadv',
-
- myweb: escape(''),
-
- cpt_lights: '0',
-
- cpt_share: '',
-
- cpt_list: ckcpt()
-
- }
- return ck;
- }
- (function() {
- var CKobject = {
- _K_: function(d){return document.getElementById(d);},
- _T_: false,
- _M_: false,
- _G_: false,
- _Y_: false,
- _I_: null,
- _J_: 0,
- _O_: {},
- uaMatch:function(u,rMsie,rFirefox,rOpera,rChrome,rSafari,rSafari2,mozilla,mobile){
- var match = rMsie.exec(u);
- if (match != null) {
- return {
- b: 'IE',
- v: match[2] || '0'
- }
- }
- match = rFirefox.exec(u);
- if (match != null) {
- return {
- b: match[1] || '',
- v: match[2] || '0'
- }
- }
- match = rOpera.exec(u);
- if (match != null) {
- return {
- b: match[1] || '',
- v: match[2] || '0'
- }
- }
- match = rChrome.exec(u);
- if (match != null) {
- return {
- b: match[1] || '',
- v: match[2] || '0'
- }
- }
- match = rSafari.exec(u);
- if (match != null) {
- return {
- b: match[2] || '',
- v: match[1] || '0'
- }
- }
- match = rSafari2.exec(u);
- if (match != null) {
- return {
- b: match[1] || '',
- v: match[2] || '0'
- }
- }
- match = mozilla.exec(u);
- if (match != null) {
- return {
- b: match[1] || '',
- v: match[2] || '0'
- }
- }
- match = mobile.exec(u);
- if (match != null) {
- return {
- b: match[1] || '',
- v: match[2] || '0'
- }
- }
- else {
- return {
- b: 'unknown',
- v: '0'
- }
- }
- },
- browser: function() {
- var u = navigator.userAgent,
- rMsie = /(msie\s|trident.*rv:)([\w.]+)/,
- rFirefox = /(firefox)\/([\w.]+)/,
- rOpera = /(opera).+version\/([\w.]+)/,
- rChrome = /(chrome)\/([\w.]+)/,
- rSafari = /version\/([\w.]+).*(safari)/,
- rSafari2 = /(safari)\/([\w.]+)/,
- mozilla = /(mozilla)\/([\w.]+)/,
- mobile = /(mobile)\/([\w.]+)/;
- var c = u.toLowerCase();
- var d = this.uaMatch(c,rMsie,rFirefox,rOpera,rChrome,rSafari,rSafari2,mozilla,mobile);
- if (d.b) {
- b = d.b;
- v = d.v;
- }
- return {B: b, V: v};
- },
- Platform: function() {
- var w = '';
- var u = navigator.userAgent,
- app = navigator.appVersion;
- var b = {
- iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1,
- iPad: u.indexOf('iPad') > -1,
- ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
- android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1,
- webKit: u.indexOf('AppleWebKit') > -1,
- trident: u.indexOf('Trident') > -1,
- gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,
- presto: u.indexOf('Presto') > -1,
- mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/),
- webApp: u.indexOf('Safari') == -1
- };
- for (var k in b) {
- if (b[k]) {
- w = k;
- break;
- }
- }
- return w;
- },
- isHTML5:function(){
- return !!document.createElement('video').canPlayType;
- },
- getType:function(){
- return this._T_;
- },
- getVideo: function() {
- var v = '';
- var s = this._E_['v'];
- if (s && s.length>1) {
- for (var i = 0; i < s.length; i++) {
- var a = s[i].split('->');
- if (a.length >= 1 && a[0] != '') {
- v += '<source src="' + a[0] + '"';
- }
- if (a.length >= 2 && a[1] != '') {
- v += ' type="' + a[1] + '"';
- }
- v += '>';
- }
- }
- return v;
- },
- getVars: function(k) {
- var o=this._A_;
- if (typeof(o) == 'undefined') {
- return null;
- }
- if (k in o) {
- return o[k];
- } else {
- return null;
- }
- },
- getParams: function() {
- var p = '';
- if (this._A_) {
- if (parseInt(this.getVars('p')) == 1) {
- p += ' autoplay="autoplay"';
- }
- if (parseInt(this.getVars('e')) == 1) {
- p += ' loop="loop"';
- }
- if (parseInt(this.getVars('p')) == 2) {
- p += ' preload="metadata"';
- }
- if (this.getVars('i')) {
- p += ' poster="' + this.getVars('i') + '"';
- }
- }
- return p;
- },
- getpath: function(z) {
- var f='CDEFGHIJKLMNOPQRSTUVWXYZcdefghijklmnopqrstuvwxyz';
- var w=z.substr(0,1);
- if(f.indexOf(w)>-1 && (z.substr(0,4)==w+'://' || z.substr(0,4)==w+':\\')){
- return z;
- }
- var d = unescape(window.location.href).replace('file:///', '');
- var k = parseInt(document.location.port);
- var u = document.location.protocol + '//' + document.location.hostname;
- var l = '',
- e = '',
- t = '';
- var s = 0;
- var r = unescape(z).split('//');
- if (r.length > 0) {
- l = r[0] + '//'
- }
- var h = 'http|https|ftp|rtsp|mms|ftp|rtmp|file';
- var a = h.split('|');
- if (k != 80 && k) {
- u += ':' + k;
- }
- for (i = 0; i < a.length; i++) {
- if ((a[i] + '://') == l) {
- s = 1;
- break;
- }
- }
- if (s == 0) {
- if (z.substr(0, 1) == '/') {
- t = u + z;
- } else {
- e = d.substring(0, d.lastIndexOf('/') + 1).replace('\\', '/');
- var w = z.replace('../', './');
- var u = w.split('./');
- var n = u.length;
- var r = w.replace('./', '');
- var q = e.split('/');
- var j = q.length - n;
- for (i = 0; i < j; i++) {
- t += q[i] + '/';
- }
- t += r;
- }
- } else {
- t = z;
- }
- return t;
- },
- getXhr: function() {
- var x;
- try {
- x = new ActiveXObject('Msxml2.XMLHTTP');
- } catch(e) {
- try {
- x = new ActiveXObject('Microsoft.XMLHTTP');
- } catch(e) {
- x = false;
- }
- }
- if (!x && typeof XMLHttpRequest != 'undefined') {
- x = new XMLHttpRequest();
- }
- return x;
- },
- getX: function(){
- var f='ckstyle()';
- if (this.getVars('x') && parseInt(this.getVars('c'))!=1 ) {
- f=this.getVars('x')+'()';
- }
- try {
- if (typeof(eval(f)) == 'object') {
- this._X_ = eval(f);
- }
- } catch(e) {
- try {
- if (typeof(eval(ckstyle)) == 'object') {
- this._X_ = ckstyle();
- }
- } catch(e) {
- this._X_ = ckstyle();
- }
- }
- },
- getSn: function(s, n) {
- if(n>=0){
- return this._X_[s].split(',')[n];
- }
- else{
- return this._X_[s];
- }
- },
- getUrl: function(L, B) {
- var C = this;
- var b = ['get', 'utf-8'];
- if (L && L.length == 2) {
- var a = L[0];
- var c = L[1].split('/');
- if (c.length >= 2) {
- b[0] = c[1];
- }
- if (c.length >= 3) {
- b[1] = c[2];
- }
- this.ajax(b[0], b[1], a,
- function(s) {
- if (s && s != 'error') {
- var d = '',
- e = s;
- if (s.indexOf('}') > -1) {
- var f = s.split('}');
- for (var i = 0; i < f.length - 1; i++) {
- d += f[i] + '}';
- var h = f[i].replace('{', '').split('->');
- if (h.length == 2) {
- C._A_[h[0]] = h[1];
- }
- }
- e = f[f.length - 1];
- }
- C._E_['v'] = e.split(',');
- if (B) {
- C.showHtml5();
- } else {
- C.changeParams(d);
- C.newAdr();
- }
- }
- });
- }
- },
- getflashvars: function(s) {
- var v = '',
- i = 0;
- if (s) {
- for (var k in s) {
- if (i > 0) {
- v += '&';
- }
- if (k == 'f' && s[k] && ! this.getSn('pm_repc',-1)) {
- s[k] = this.getpath(s[k]);
- if (s[k].indexOf('&') > -1) {
- s[k] = encodeURIComponent(s[k]);
- }
- }
- if (k == 'y' && s[k]) {
- s[k] = this.getpath(s[k]);
- }
- v += k + '=' + s[k];
- i++;
- }
- }
- return v;
- },
- getparam: function(s) {
- var w = '',
- v = '',
- o = {
- allowScriptAccess: 'always',
- allowFullScreen: true,
- quality: 'high',
- bgcolor: '#000'
- };
- if (s) {
- for (var k in s) {
- o[k] = s[k];
- }
- }
- for (var e in o) {
- w += e + '="' + o[e] + '" ';
- v += '<param name="' + e + '" value="' + o[e] + '" />';
- }
- w = w.replace('movie=', 'src=');
- return {
- w: w,
- v: v
- };
- },
- getObjectById: function(s) {
- var C = this;
- if (C._T_) {
- C._V_=C._K_(s)
- return C ;
- }
- var x = null,
- y = C._K_(s),
- r = 'embed';
- if (y && y.nodeName == 'OBJECT') {
- if (typeof y.SetVariable != 'undefined') {
- x= y;
- } else {
- var z = y.getElementsByTagName(r)[0];
- if (z) {
- x= z;
- }
- }
- }
- return x;
- },
- ajax: function(b, u, s, f) {
- var x = this.getXhr();
- var a = [],
- m = '';
- if (b == 'get') {
- if (s.indexOf('?') > -1) {
- m = s + '&t=' + new Date().getTime();
- } else {
- m = s + '?t=' + new Date().getTime();
- }
- x.open('get', m);
- } else {
- a = s.split('?');
- s = a[0],
- m = a[1];
- x.open('post', s, true);
- }
- x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
- x.setRequestHeader('charset', u);
- if (b == 'post') {
- x.send(m);
- } else {
- x.send(null);
- }
- x.onreadystatechange = function() {
- if (x.readyState == 4) {
- var g = x.responseText;
- if (g != '') {
- f(g);
- } else {
- f(null);
- }
- }
- }
- },
- addListener: function(e, f) {
- var o=this._V_;
- switch(e){
- case 'time':
- e='timeupdate';
- this.AT=f;
- f=this.addListenerTime;
- break;
- case 'totaltime':
- this.ATAll=f;
- return;
- break;
- default:
- break;
- }
-
- if(typeof(f)=='string'){
- f=eval(f);
- }
- if (o.addEventListener) {
- try{
- o.addEventListener(e, f, false);
- }
- catch (e) {
- this.getNot();
- }
- }
- else if (o.attachEvent) {
- try{
- o.attachEvent('on' + e, f);
- }
- catch(e){
- this.getNot();
- }
- }
- else {
- o['on' + e] = f;
- }
- },
- removeListener: function( e, f) {
- var o=this._V_;
- switch(e){
- case 'time':
- e='timeupdate';
- this.AT=null;
- break;
- case 'totaltime':
- this.ATAll=null;
- return;
- break;
- default:
- break;
- }
- if(typeof(f)=='string'){
- f=eval(f);
- }
- if (o.removeEventListener) {
- try{
- o.removeEventListener(e, f, false);
- }
- catch(e){
- this.getNot();
- }
- }
- else if (o.detachEvent) {
- try{
- o.detachEvent('on' + e, f);
- }
- catch(e){
- this.getNot();
- }
- }
- else {
- o['on' + e] = null;
- }
- },
- Flash: function() {
- var f = false,v = 0;
- if (document.all || this.browser()['B'].toLowerCase().indexOf('ie')>-1) {
- try {
- var s = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
- f = true;
- var z = s.GetVariable('$version');
- v = parseInt(z.split(' ')[1].split(',')[0]);
- } catch(e) {}
- } else {
- if (navigator.plugins && navigator.plugins.length > 0) {
- var s = navigator.plugins['Shockwave Flash'];
- if (s) {
- f = true;
- var w = s.description.split(' ');
- for (var i = 0; i < w.length; ++i) {
- if (isNaN(parseInt(w[i]))) continue;
- v = parseInt(w[i]);
- }
- }
- }
- }
- return {
- f: f,
- v: v
- };
- },
- embed:function(f,d,i,w,h,b,v,e,p,j){
- var s=['all'];
- if(b){
- if(this.isHTML5()){
- this.embedHTML5(d,i,w,h,e,v,s,j);
- }
- else{
- this.embedSWF(f,d,i,w,h,v,p);
- }
- }
- else{
- if(this.Flash()['f'] && parseInt(this.Flash()['v'])>10){
- this.embedSWF(f,d,i,w,h,v,p);
- }
- else if(this.isHTML5()){
- this.embedHTML5(d,i,w,h,e,v,s,j);
- }
- else{
- this.embedSWF(f,d,i,w,h,v,p);
- }
- }
- },
- embedSWF: function(C, D, N, W, H, V, P) {
- if (!N) {
- N = 'ckplayer_a1'
- }
- if (!P) {
- P = {
- bgcolor: '#FFF',
- allowFullScreen: true,
- allowScriptAccess: 'always',
- wmode:'transparent'
- };
- }
- this._A_=V;
- this.getX();
- var u = 'undefined',
- g = false,
- j = document,
- r = 'http://www.macromedia.com/go/getflashplayer',
- t = '<a href="' + r + '" target="_blank">请点击此处下载安装最新的flash插件</a>',
- error = {
- w: '您的网页不符合w3c标准,无法显示播放器',
- f: '您没有安装flash插件,无法播放视频,' + t,
- v: '您的flash插件版本过低,无法播放视频,' + t
- },
- w3c = typeof j.getElementById != u && typeof j.getElementsByTagName != u && typeof j.createElement != u,
- i = 'id="' + N + '" name="' + N + '" ',
- s = '',
- l = '';
- P['movie'] = C;
- P['flashvars'] = this.getflashvars(V);
- if(W==-1){
- d=true;
- this._K_(D).style.width='100%';
- W='100%';
- }
- s += '<object pluginspage="http://www.macromedia.com/go/getflashplayer" ';
- s += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
- s += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=11,3,0,0" ';
- s += 'width="' + W + '" ';
- s += 'height="' + H + '" ';
- s += i;
- s += 'align="middle">';
- s += this.getparam(P)['v'];
- s += '<embed ';
- s += this.getparam(P)['w'];
- s += ' width="' + W + '" height="' + H + '" name="' + N + '" id="' + N + '" align="middle" ' + i;
- s += 'type="application/x-shockwave-flash" pluginspage="' + r + '" />';
- s += '</object>';
- if (!w3c) {
- l = error['w'];
- g = true;
- } else {
- if (!this.Flash()['f']) {
- l = error['f'];
- g = true;
- } else {
- if (this.Flash()['v'] < 11) {
- l = error['v'];
- g = true;
- } else {
- l = s;
- this._T_=false;
- }
- }
- }
- if (l) {
- this._K_(D).innerHTML = l;
- }
- if (g){
- this._K_(D).style.color = '#0066cc';
- this._K_(D).style.lineHeight = this._K_(D).style.height;
- this._K_(D).style.textAlign= 'center';
- }
- },
- embedHTML5: function(C, P, W, H, V, A, S, J) {
- this._E_ = {
- c: C,
- p: P,
- w: W,
- h: H,
- v: V,
- s: S,
- j: J==undefined || J?true:false
- };
- this._A_ = A;
- this.getX();
- b = this.browser()['B'],
- v = this.browser()['V'],
- x = v.split('.'),
- t = x[0],
- m = b + v,
- n = b + t,
- w = '',
- s = false,
- f = this.Flash()['f'],
- a = false;
- if (!S) {
- S = ['iPad', 'iPhone', 'ios'];
- }
- for (var i = 0; i < S.length; i++) {
- w = S[i];
- if (w.toLowerCase() == 'all') {
- s = true;
- break;
- }
- if (w.toLowerCase() == 'all+false' && !f) {
- s = true;
- break;
- }
- if (w.indexOf('+') > -1) {
- w = w.split('+')[0];
- a = true;
- } else {
- a = false;
- }
- if (this.Platform() == w || m == w || n == w || b == w) {
- if (a) {
- if (!f) {
- s = true;
- break;
- }
- }else {
- s = true;
- break;
- }
- }
- }
- if (s) {
- if (V) {
- var l = V[0].split('->');
- if (l && l.length == 2 && l[1].indexOf('ajax') > -1) {
- this.getUrl(l, true);
- return;
- }
- }
- this.showHtml5();
- }
- },
- status: function() {
- this._H_ = parseInt(this.getSn('setup', 20));
- var f='ckplayer_status';
- if (this.getSn('calljs', 0)!='') {
- f=this.getSn('calljs', 0);
- }
- try {
- if (typeof(eval(f)) == 'function') {
- this._L_=eval(f);
- this._M_=true;
- return true;
- }
- } catch(e) {
- try {
- if (typeof(eval(ckplayer_status)) == 'function') {
- this._L_=ckplayer_status;
- this._M_=true;
- return true;
- }
- } catch(e) {
- return false;
- }
- }
- return false;
- },
- showHtml5: function() {
- var C = this;
- var p = C._E_['p'],
- a = C._E_['v'],
- c = C._E_['c'],
- j = '',
- b = false;
- var s = this._E_['v'];
- var w=C._E_['w'],h=C._E_['h'];
- var d=false;
- var r='';
- if(s.length==1){
- r=' src="'+s[0].split('->')[0]+'"';
- }
- if(w==-1){
- d=true;
- C._K_(c).style.width='100%';
- w='100%';
- }
- if(w.toString().indexOf('%')>-1){
- w='100%';
- }
- if(h.toString().indexOf('%')>-1){
- h='100%';
- }
- if(C._E_['j']){
- j=' controls="controls"';
- }
- var v = '<video'+j+r+' id="' + p + '" width="' + w + '" height="' + h + '"' + C.getParams() + ' webkit-playsinline>' + C.getVideo() + '</video>';
- C._K_(c).innerHTML = v;
- C._K_(c).style.backgroundColor = '#000';
- C._V_ = C._K_(p);
- if(!d){
- C._K_(c).style.width=C._E_['w'].toString().indexOf('%')>-1?(C._K_(c).offsetWidth*parseInt(C._E_['w'])*0.01)+'px':C._V_.width+'px';
- C._K_(c).style.height=C._E_['h'].toString().indexOf('%')>-1?(C._K_(c).offsetHeight*parseInt(C._E_['h'])*0.01)+'px':C._V_.height+'px';
- }
- C._P_ = false;
- C._T_ = true;
- if (C.getVars('loaded')!='') {
- var f=C.getVars('loaded')+'()';
- try {
- if (typeof(eval(f)) == 'function') {
- eval(f);
- }
- } catch(e) {
- try {
- if (typeof(eval(loadedHandler)) == 'function') {
- loadedHandler();
- }
- } catch(e) {
- }
- }
- }
- C.status();
- C.addListener('play', C.playHandler);
- C.addListener('pause', C.playHandler);
- C.addListener('error', C.errorHandler);
- C.addListener('emptied', C.errorHandler);
- C.addListener('loadedmetadata', C.loadedMetadataHandler);
- C.addListener('ended', C.endedHandler);
- C.addListener('volumechange', C.volumeChangeHandler);
- if((C.getVars('m')!='' && C.getVars('m')!=null) || parseInt( C.getSn('setup', 0))>0){
- C._K_(c).style.cursor='pointer';
- }
- if((C.getVars('m')!='' && C.getVars('m')!=null) || parseInt( C.getSn('setup', 1))==1){
- C.addListener('click', C.html5Click);
- }
- },
- addListenerTime:function(){
- var C = CKobject;
- if(C.AT){
- C.AT(C._V_['currentTime']);
- }
- },
- videoPlay: function() {
- if (this._T_) {
- this._V_.play();
- }
- },
- videoPause: function() {
- if (this._T_) {
- this._V_.pause();
- }
- },
- playOrPause: function() {
- if (this._T_) {
- if (this._V_.paused) {
- this._V_.play();
- } else {
- this._V_.pause();
- }
- }
- },
- fastNext: function() {
- if (this._T_) {
- this._V_['currentTime'] = this._V_['currentTime'] + 10;
- }
- },
- fastBack: function() {
- if (this._T_) {
- this._V_['currentTime'] = this._V_['currentTime'] - 10;
- }
- },
- changeVolume: function(n) {
- if(n<0 || n>100){
- return;
- }
- if (this._T_) {
- this._V_['volume'] = n * 0.01;
- }
- },
- videoSeek: function(t) {
- if (this._T_) {
- this._V_['currentTime'] = t;
- }
- },
- newAddress: function(u) {
- var s = [];
- if (u) {
- s = this.isHtml5New(u);
- } else {
- return;
- }
- if (s && this._T_) {
- this.changeParams(u);
- var l = s[0].split('->');
- if (l && l.length == 2 && l[1].indexOf('ajax') > -1) {
- this.getUrl(l, false);
- return;
- }
- this._E_['v'] = s;
- this.newAdr();
- }
- },
- quitFullScreen:function() {
- if(document.cancelFullScreen) {
- document.cancelFullScreen();
- }
- else if(document.mozCancelFullScreen) {
- document.mozCancelFullScreen();
- } else if(document.webkitCancelFullScreen) {
- document.webkitCancelFullScreen();
- }
- },
- changeStatus:function(n){
- this._H_=n;
- },
- newAdr: function() {
- var s = this._E_['v'];
- this._V_.pause();
- if(s.length==1){
- this._V_.src=s[0].split('->')[0];
- }
- else{
- this._V_['innerHTML'] = this.getVideo();
- }
- this._V_.load();
- },
- isHtml5New: function(s) {
- if (s.indexOf('html5') == -1) {
- return false;
- }
- var a = s.replace(/{/g, '');
- var b = a.split('}');
- var c = '';
- for (var i = 0; i < b.length; i++) {
- if (b[i].indexOf('html5') > -1) {
- c = b[i].replace('html5->', '').split(',');
- break;
- }
- }
- return c;
- },
- changeParams: function(f) {
- if (f) {
- var a = f.replace(/{/g, '');
- var b = a.split('}');
- var c = '';
- for (var i = 0; i < b.length; i++) {
- var d = b[i].split('->');
- if(d.length == 2){
- switch(d[0]){
- case 'p':
- if(parseInt(d[1]) == 1){
- this._V_.autoplay = true;
- }
- else if(parseInt(d[1]) == 2){
- this._V_.preload = 'metadata';
- }
- else{
- this._V_.autoplay = false;
- if(this._I_!=null){
- clearInterval(this._I_);
- this._I_=null;
- }
- }
- break;
- case 'e':
- if(parseInt(d[1]) == 1){
- this._V_.loop = true;
- }
- else{
- this._V_.loop = false;
- }
- break;
- case 'i':
- this._V_.poster = d[1];
- break;
- default:
- break;
- }
- }
- }
- }
- },
- frontAdPause: function(s) {
- this.getNot();
- },
- frontAdUnload: function() {
- this.getNot();
- },
- changeFace: function(s) {
- this.getNot();
- },
- plugin: function(a, b, c, d, e, f, g) {
- this.getNot();
- },
- videoClear: function() {
- this.getNot();
- },
- videoBrightness: function(s) {
- this.getNot();
- },
- videoContrast: function(s) {
- this.getNot();
- },
- videoSaturation: function(s) {
- this.getNot();
- },
- videoSetHue: function(s) {
- this.getNot();
- },
- videoWAndH: function(a, b) {
- this.getNot();
- },
- videoWHXY: function(a, b, c, d) {
- this.getNot();
- },
- changeFlashvars: function(a) {
- this.getNot();
- },
- changeMyObject: function(a, b) {
- this.getNot();
- },
- getMyObject: function(a, b) {
- this.getNot();
- },
- changeeFace: function() {
- this.getNot();
- },
- changeStyle: function(a, b) {
- this.getNot();
- },
- promptLoad: function() {
- this.getNot();
- },
- promptUnload: function() {
- this.getNot();
- },
- marqueeLoad: function(a,b) {
- this.getNot();
- },
- marqueeClose: function(s) {
- this.getNot();
- },
- videoError: function(s) {
- this.getNot();
- },
- formatUrl: function(s) {
- this.getNot();
- },
- sendJS: function(s) {
- this.getNot();
- },
- plugAttribute: function(s) {
- this.getNot();
- },
- errorTextShow: function(s) {
- this.getNot();
- },
- openUrl: function(s) {
- window.open(s);
- },
- jsonParse: function(s) {
- this.getNot();
- },
- promptShow: function(s,x,y) {
- this.getNot();
- },
- screenShot: function(s,x,y,x2,y2) {
- this.getNot();
- },
- fullScreen: function() {
- this.getNot();
- },
- allowFull: function() {
- this.getNot();
- },
- loadButton: function() {
- this.getNot();
- },
- getFile: function() {
- this.getNot();
- },
- textBoxShow:function() {
- this.getNot();
- },
- loadElement: function() {
- this.getNot();
- },
- textBoxClose: function() {
- this.getNot();
- },
- textBoxTween: function() {
- this.getNot();
- },
- getNot: function() {
- var s='The ckplayer\'s API for HTML5 does not exist';
- return s;
- },
- volumeChangeHandler: function() {
- var C = CKobject;
- if (C._V_.muted) {
- C.returnStatus('volumechange:0', 1);
- C._O_['volume'] = 0;
- C._O_['mute'] = true;
- } else {
- C._O_['mute'] = false;
- C._O_['volume'] = C._V_['volume'] * 100;
- C.returnStatus('volumechange:'+C._V_['volume'] * 100, 1);
- }
- },
- endedHandler: function() {
- var C = CKobject;
- var e=parseInt(C.getVars('e'));
- C.returnStatus('ended', 1);
- if(C._I_){
- clearInterval(C._I_);
- C._I_=null;
- }
- if ( e!= 0 && e !=4 && e !=6) {
- return;
- }
- if(e==6){
- this.quitFullScreen();
- }
- var f='playerstop()';
- if (C.getSn('calljs', 2)!='') {
- f=C.getSn('calljs', 2)+'()';
- }
- try {
- if (typeof(eval(f)) == 'function') {
- eval(f);
- return;
- }
- } catch(e) {
- try {
- if (typeof(eval(playerstop)) == 'function') {
- playerstop();
- return;
- }
- } catch(e) {
- return;
- }
- }
- },
- loadedMetadataHandler: function() {
- var C = CKobject;
- C.returnStatus('loadedmetadata', 1);
- C._O_['totalTime'] = C._V_['duration'];
- C._O_['width'] = C._V_['width'];
- C._O_['height'] = C._V_['height'];
- C._O_['awidth'] = C._V_['videoWidth'];
- C._O_['aheight'] = C._V_['videoHeight'];
- if (C._V_.defaultMuted) {
- C.returnStatus('volumechange:0', 1);
- C._O_['mute'] = true;
- C._O_['volume'] = 0;
- } else {
- C._O_['mute'] = false;
- C._O_['volume'] = C._V_['volume'] * 100;
- C.returnStatus('volumechange:'+C._V_['volume'] * 100, 1);
- }
- if (parseInt(C.getVars('p')) == 1) {
- C.playHandler();
- }
- if(C.ATAll){
- C.ATAll(C._V_['duration']);
- }
- },
- errorHandler: function() {
- CKobject.returnStatus('error', 1);
- },
- playHandler: function() {
- var C = CKobject;
- if (C._V_.paused) {
- C.returnStatus('pause', 1);
- C.addO('play', false);
- if(C._I_!=null){
- clearInterval(C._I_);
- C._I_=null;
- }
- } else {
- C.returnStatus('play', 1);
- C.addO('play', true);
- if (!C._P_) {
- C.returnStatus('play', 1);
- C._P_ = true;
- }
- C._I_ = setInterval(C.playTime, parseInt( C.getSn('setup', 37)));
- if(!C._G_){
- C._G_=true;
- for(var k in C._A_){
- if(k=='g' && C._A_[k]){
- var g=parseInt(C._A_[k]);
- C.videoSeek(g);
- }
- }
- }
- if(!C._Y_){
- C._Y_=true;
- for(var k in C._A_){
- if(k=='j' && C._A_[k]){
- var j=parseInt(C._A_[k]);
- if(j>0){
- C._J_=j;
- }
- else{
- C._J_=parseInt(C._O_['totalTime'])+j;
- }
- }
- }
- }
- }
- },
- html5Click: function(){
-
- var C = CKobject;
- if(C.getVars('m')!='' && C.getVars('m')!=null){
- window.open(C.getVars('m'));
- }
- },
- returnStatus: function(s, j) {
- var h = s;
- if (this._H_ == 3) {
- h = this._E_['p'] +'->'+ h;
- }
- if (this._M_ && j <= this._H_ ) {
- this._L_(h);
- }
- },
- addO: function(s, z) {
- this._O_[s] = z;
- },
- getStatus: function() {
- return this._O_;
- },
- playTime: function() {
- var C = CKobject;
- var t = C._V_['currentTime'];
- C._O_['time'] = t;
- if(C._J_>0 && t>C._J_){
- C._J_=0;
- C.videoSeek(C._O_['totaltime']);
- }
- C.returnStatus('time:' + t, 1);
- }
- }
- window.CKobject = CKobject;
- })();
|