123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284 |
-
- U.MS.IsYX = function (UCB) {
- if (this == null) { throw new Error("this is null or not defined"); }
- else if ({}.toString.call(UCB) != "[object Function]") { throw new Error(UCB + " is not a function"); }
- else { return true; }; return false;
- }
- U.M.nextSibling = function (obj) {
- while (obj.nextSibling.nodeType != 1) {
- obj = obj.nextSibling;
- }
- return obj.nextSibling;
- }
- U.M.previousSibling = function (obj) {
- while (obj.previousSibling.nodeType != 1) {
- obj = obj.previousSibling;
- }
- return obj.previousSibling;
- }
- U.MC.TC = {};
- U.MC.TCatch = function (f) {
- try { (typeof (f) == "string") ? eval(f) : f; }
- catch (e) { Add(U.MC.TC, { "类型": e.name, "错误信息": e.message, "时间": U.MT.formatDateToArray(new Date()) }); }
- }
- U.M.SetCapture = function (obj) {
- return document.all ? obj.setCapture() : window.captureEvents(Event.MOUSEMOVE);
- }
- U.M.releaseCapture = function (obj) {
- document.all ? obj.releaseCapture() : window.releaseEvents(Event.MOUSEUP);
- }
- U.M.LoadEvent = function (func) {
- var oldonload = window.onload;
-
- if (typeof window.onload != 'function') {
- window.onload = func;
- }
- else {
- window.onload = function () {
- oldonload();
- func();
- }
- }
- }
- U.M.getKeyCode = function (e) {
- e = e || window.event;
- keynum = e.keyCode ? e.keyCode : e.which;
- return keynum;
- }
- U.M.GetEventTarget = function (e) {
- e = e || window.event;
- return e.target || e.srcElement;
- }
- U.M.invokeClick = function (element) {
- if (element.click) element.click();
- else if (element.fireEvent) element.fireEvent('onclick');
- else if (document.createEvent) {
- var evt = document.createEvent("MouseEvents");
- evt.initEvent("click", true, true);
- element.dispatchEvent(evt);
- }
- }
- U.M.dblClick = function (element) {
- if (element.ondblclick) element.ondblclick();
- else if (element.fireEvent) element.fireEvent('ondblclick');
- else if (document.createEvent) {
- var evt = document.createEvent("MouseEvents");
- evt.initEvent("dblclick", true, true);
- element.dispatchEvent(evt);
- }
- }
- U.M.removeEvent = function (oTarget, sEventType, funName) {
- if (oTarget.removeEventListener) {
- oTarget.removeEventListener(sEventType, funName, false);
- } else if (oTarget.detachEvent) {
- oTarget.detachEvent("on" + sEventType, funName);
- } else {
- oTarget["on" + sEventType] = null;
- }
- }
- U.AFB.AddEvent = function (oTarget, sEventType, funName) {
- if (oTarget.addEventListener) {
- oTarget.addEventListener(sEventType, funName, false);
- } else if (oTarget.attachEvent) {
- oTarget.attachEvent("on" + sEventType, funName);
- } else {
- oTarget["on" + sEventType] = funName;
- }
- }
- U.M.killErrors = function (sMsg, sUrl, sLine) {
-
-
-
-
-
-
- return true;
- }
- U.M.forbiddenKey = function () {
- if (event.keyCode == 116) { event.keyCode = 0; event.returnValue = false; }
- }
- U.M.ForbiddenDivRightMouseClick = function (obj) {
- obj.oncontextmenu = function () { return false; }
- }
- U.M.norm_img = function (SO) {
- var _ISO = $("img", SO);
- for (var i = 0; i < _ISO.length; i++) {
- if (_ISO[i].clientWidth >= 1024) { _ISO[i].width = "900px"; }
- }
- }
- U.M.setuserbackgroundfont = function (obj) {
- if (obj != null) {
- var allelments = parent.document.getElementsByTagName('*');
- var i;
- for (i = 0; i < allelments.length; i++) {
- allelments[i].style.fontSize = obj + "px";
- }
- }
- }
- U.MS.dropSpaceAndDot = function (obj) {
- str = obj.value;
- var pattern = new RegExp("[`~!#$^&*()=|{}':;',\\[\\].<>/?~#……&*()&;—|{}‘;:”“'。,、]");
- var newstr = "";
- for (i = 0; i < str.length; i++) {
- if (str.substr(i, 1) == " ") {
- continue;
- }
- newstr += str.substr(i, 1).replace(pattern, "");
- }
- obj.innerText = newstr;
-
- }
- U.M.isBlank = function (szStr) {
- for (i = 0; i < szStr.length; i++) {
- if (szStr.substring(i, i + 1) == ' ') {
- return false;
- }
- break;
- }
- return true;
- }
- U.MS.Checkguid = function (object_value) {
- if (object_value.length == 0)
- return false;
- if (object_value.length != 38)
- return false;
- if (object_value.charAt(0) != "{")
- return false;
- if (object_value.charAt(37) != "}")
- return false;
- var hex_format = "0123456789abcdefABCDEF";
- var check_char;
- for (var i = 1; i < 37; i++) {
- if ((i == 9) || (i == 14) || (i == 19) || (i == 24)) {
- if (object_value.charAt(i) != "-")
- return false;
- } else {
- check_char = hex_format.indexOf(object_value.charAt(i));
- if (check_char < 0)
- return false;
- }
- }
- return true;
- }
- U.MT.GetNowTime = function () {
- var time = new Date();
- var TimePart = document.getElementById("TimePart");
- var DataTime = time.getHours();
- if (DataTime >= 0 && DataTime < 12) {
- TimePart.innerHTML = "早上好!";
- }
- else if (DataTime >= 12 && DataTime < 18) {
- TimePart.innerHTML = "下午好!";
- }
- else {
- TimePart.innerHTML = "晚上好!";
- }
- }
- U.MT.DateUTC = function (STime) {
- STime = STime.split(" ");
- var MY = STime[0].split("/");
- var MS = STime[STime.length - 1].split(":");
- return "/Date(" + Date.UTC(MY[0], MY[1], MY[2], MS[0], MS[1], MS[2], 0) + ")/";
- }
- U.MT.getLocalTime = function (nS) {
- var _timeS = new Date(parseInt(nS.substring(6, nS.length - 2))).toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");
- if (!top.browser.msie) _timeS = _timeS.substring(10, 25);
- return _timeS;
- }
- U.MT.currenttime = function () {
- var _currenttime = new Date();
- var _year = U.MT.getYear()
- var _month = _currenttime.getMonth() + 1;
- var _date = _currenttime.getDate();
- var _houst = _currenttime.getHours();
- var _Minutes = _currenttime.getMinutes();
- var _Seconds = _currenttime.getSeconds();
- return _year + '/' + _month + '/' + _date + ' ' + _houst + ':' + _Minutes + ':' + _Seconds;
- }
- U.MT.getDate = function (D) {
- if (D == null) { D = new Date(); }
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- U.MT.GetMonth = function (month) {
- switch (month) {
- case "Jan":
- return "1";
- break;
- case "Feb":
- return "2";
- break;
- case "Mar":
- return "3";
- break;
- case "Apr":
- return "4";
- break;
- case "May":
- return "5";
- break;
- case "Jun":
- return "6";
- break;
- case "Jul":
- return "7";
- break;
- case "Aug":
- return "8";
- break;
- case "Sep":
- return "9";
- break;
- case "Oct":
- return "10";
- break;
- case "Nov":
- return "11";
- break;
- case "Dec":
- return "12";
- break;
- }
- }
- U.MT.Getweek = function (week) {
- switch (week) {
- case "Mon":
- return "一";
- break;
- case "Tue":
- return "二";
- break;
- case "Wed":
- return "三";
- break;
- case "Thu":
- return "四";
- break;
- case "Fri":
- return "五";
- break;
- case "Sat":
- return "六";
- break;
- case "Sun":
- return "七";
- break;
- }
- }
- U.MT.DataTime = function (time) {
- time = eval('new ' + eval(time).source) + "";
- var strtime;
- _strtime = time.split(" ");
- _strtime[1] = U.MT.GetMonth(_strtime[1]);
- _strtime[0] = U.MT.Getweek(_strtime[0]);
- return _strtime;
- }
- U.MT.DateAnalyze = function (TD) {
- TD = TD.split(" ");
- var MT = TD[0].split("/");
- MT = MT[0].split("-")
- MT[3] = TD[TD.length - 1];
- return MT;
- }
- U.MT.getUnixTime = function (str_time) {
- var new_str = str_time.replace(/:/g, '-');
- new_str = new_str.replace(/ /g, '-');
- var arr = new_str.split("-");
- arr.length = 5;
- for (var i = 0; i < 6; i++) {
- if (arr[i] == undefined) {
- arr[i] = 0;
- }
- }
- return "/Date(" + Date.UTC(arr[0], arr[1] - 1, arr[2], arr[3] - 8, arr[4], arr[5]) + ")/";
- }
- U.MT.IsLeapYear = function (Y) {
- if ((Y % 400 == 0 && Y % 100 == 0) || (Y % 4 == 0 && Y % 100 != 0)) { return true; }
- else { return false; }
- }
- U.MT.getYear = function () {
- var year = new Date().getYear();
- year = (year < 1900 ? (1900 + year) : year);
- return year;
- }
- U.MT.getNowMonth = function () {
- var month = new Date().getMonth() + 1;
- return month;
- }
- U.MT.getNowDate = function () {
- var date = new Date().getDate();
- return date;
- }
- U.MT.getDayOfMonth = function (month, year) {
- if (month == 4 || month == 6 || month == 9 || month == 11) {
- return 30;
- }
- if (month == 2) {
- if (U.MT.IsLeapYear(year)) {
- return 29;
- }
- else return 28;
- }
- return 31;
- }
- U.MS.PY = { 0xB0A1: "a", 0xB0A3: "ai", 0xB0B0: "an", 0xB0B9: "ang", 0xB0BC: "ao", 0xB0C5: "ba", 0xB0D7: "bai", 0xB0DF: "ban", 0xB0EE: "bang", 0xB0FA: "bao", 0xB1AD: "bei", 0xB1BC: "ben", 0xB1C0: "beng", 0xB1C6: "bi", 0xB1DE: "bian", 0xB1EA: "biao", 0xB1EE: "bie", 0xB1F2: "bin", 0xB1F8: "bing", 0xB2A3: "bo", 0xB2B8: "bu", 0xB2C1: "ca", 0xB2C2: "cai", 0xB2CD: "can", 0xB2D4: "cang", 0xB2D9: "cao", 0xB2DE: "ce", 0xB2E3: "ceng", 0xB2E5: "cha", 0xB2F0: "chai", 0xB2F3: "chan", 0xB2FD: "chang", 0xB3AC: "chao", 0xB3B5: "che", 0xB3BB: "chen", 0xB3C5: "cheng", 0xB3D4: "chi", 0xB3E4: "chong", 0xB3E9: "chou", 0xB3F5: "chu", 0xB4A7: "chuai", 0xB4A8: "chuan", 0xB4AF: "chuang", 0xB4B5: "chui", 0xB4BA: "chun", 0xB4C1: "chuo", 0xB4C3: "ci", 0xB4CF: "cong", 0xB4D5: "cou", 0xB4D6: "cu", 0xB4DA: "cuan", 0xB4DD: "cui", 0xB4E5: "cun", 0xB4E8: "cuo", 0xB4EE: "da", 0xB4F4: "dai", 0xB5A2: "dan", 0xB5B1: "dang", 0xB5B6: "dao", 0xB5C2: "de", 0xB5C5: "deng", 0xB5CC: "di", 0xB5DF: "dian", 0xB5EF: "diao", 0xB5F8: "die", 0xB6A1: "ding", 0xB6AA: "diu", 0xB6AB: "dong", 0xB6B5: "dou", 0xB6BC: "du", 0xB6CB: "duan", 0xB6D1: "dui", 0xB6D5: "dun", 0xB6DE: "duo", 0xB6EA: "e", 0xB6F7: "en", 0xB6F8: "er", 0xB7A2: "fa", 0xB7AA: "fan", 0xB7BB: "fang", 0xB7C6: "fei", 0xB7D2: "fen", 0xB7E1: "feng", 0xB7F0: "fo", 0xB7F1: "fou", 0xB7F2: "fu", 0xB8C1: "ga", 0xB8C3: "gai", 0xB8C9: "gan", 0xB8D4: "gang", 0xB8DD: "gao", 0xB8E7: "ge", 0xB8F8: "gei", 0xB8F9: "gen", 0xB8FB: "geng", 0xB9A4: "gong", 0xB9B3: "gou", 0xB9BC: "gu", 0xB9CE: "gua", 0xB9D4: "guai", 0xB9D7: "guan", 0xB9E2: "guang", 0xB9E5: "gui", 0xB9F5: "gun", 0xB9F8: "guo", 0xB9FE: "ha", 0xBAA1: "hai", 0xBAA8: "han", 0xBABB: "hang", 0xBABE: "hao", 0xBAC7: "he", 0xBAD9: "hei", 0xBADB: "hen", 0xBADF: "heng", 0xBAE4: "hong", 0xBAED: "hou", 0xBAF4: "hu", 0xBBA8: "hua", 0xBBB1: "huai", 0xBBB6: "huan", 0xBBC4: "huang", 0xBBD2: "hui", 0xBBE7: "hun", 0xBBED: "huo", 0xBBF7: "ji", 0xBCCE: "jia", 0xBCDF: "jian", 0xBDA9: "jiang", 0xBDB6: "jiao", 0xBDD2: "jie", 0xBDED: "jin", 0xBEA3: "jing", 0xBEBC: "jiong", 0xBEBE: "jiu", 0xBECF: "ju", 0xBEE8: "juan", 0xBEEF: "jue", 0xBEF9: "jun", 0xBFA6: "ka", 0xBFAA: "kai", 0xBFAF: "kan", 0xBFB5: "kang", 0xBFBC: "kao", 0xBFC0: "ke", 0xBFCF: "ken", 0xBFD3: "keng", 0xBFD5: "kong", 0xBFD9: "kou", 0xBFDD: "ku", 0xBFE4: "kua", 0xBFE9: "kuai", 0xBFED: "kuan", 0xBFEF: "kuang", 0xBFF7: "kui", 0xC0A4: "kun", 0xC0A8: "kuo", 0xC0AC: "la", 0xC0B3: "lai", 0xC0B6: "lan", 0xC0C5: "lang", 0xC0CC: "lao", 0xC0D5: "le", 0xC0D7: "lei", 0xC0E2: "leng", 0xC0E5: "li", 0xC1A9: "lia", 0xC1AA: "lian", 0xC1B8: "liang", 0xC1C3: "liao", 0xC1D0: "lie", 0xC1D5: "lin", 0xC1E1: "ling", 0xC1EF: "liu", 0xC1FA: "long", 0xC2A5: "lou", 0xC2AB: "lu", 0xC2BF: "lv", 0xC2CD: "luan", 0xC2D3: "lue", 0xC2D5: "lun", 0xC2DC: "luo", 0xC2E8: "ma", 0xC2F1: "mai", 0xC2F7: "man", 0xC3A2: "mang", 0xC3A8: "mao", 0xC3B4: "me", 0xC3B5: "mei", 0xC3C5: "men", 0xC3C8: "meng", 0xC3D0: "mi", 0xC3DE: "mian", 0xC3E7: "miao", 0xC3EF: "mie", 0xC3F1: "min", 0xC3F7: "ming", 0xC3FD: "miu", 0xC3FE: "mo", 0xC4B1: "mou", 0xC4B4: "mu", 0xC4C3: "na", 0xC4CA: "nai", 0xC4CF: "nan", 0xC4D2: "nang", 0xC4D3: "nao", 0xC4D8: "ne", 0xC4D9: "nei", 0xC4DB: "nen", 0xC4DC: "neng", 0xC4DD: "ni", 0xC4E8: "nian", 0xC4EF: "niang", 0xC4F1: "niao", 0xC4F3: "nie", 0xC4FA: "nin", 0xC4FB: "ning", 0xC5A3: "niu", 0xC5A7: "nong", 0xC5AB: "nu", 0xC5AE: "nv", 0xC5AF: "nuan", 0xC5B0: "nue", 0xC5B2: "nuo", 0xC5B6: "o", 0xC5B7: "ou", 0xC5BE: "pa", 0xC5C4: "pai", 0xC5CA: "pan", 0xC5D2: "pang", 0xC5D7: "pao", 0xC5DE: "pei", 0xC5E7: "pen", 0xC5E9: "peng", 0xC5F7: "pi", 0xC6AA: "pian", 0xC6AE: "piao", 0xC6B2: "pie", 0xC6B4: "pin", 0xC6B9: "ping", 0xC6C2: "po", 0xC6CB: "pu", 0xC6DA: "qi", 0xC6FE: "qia", 0xC7A3: "qian", 0xC7B9: "qiang", 0xC7C1: "qiao", 0xC7D0: "qie", 0xC7D5: "qin", 0xC7E0: "qing", 0xC7ED: "qiong", 0xC7EF: "qiu", 0xC7F7: "qu", 0xC8A6: "quan", 0xC8B1: "que", 0xC8B9: "qun", 0xC8BB: "ran", 0xC8BF: "rang", 0xC8C4: "rao", 0xC8C7: "re", 0xC8C9: "ren", 0xC8D3: "reng", 0xC8D5: "ri", 0xC8D6: "rong", 0xC8E0: "rou", 0xC8E3: "ru", 0xC8ED: "ruan", 0xC8EF: "rui", 0xC8F2: "run", 0xC8F4: "ruo", 0xC8F6: "sa", 0xC8F9: "sai", 0xC8FD: "san", 0xC9A3: "sang", 0xC9A6: "sao", 0xC9AA: "se", 0xC9AD: "sen", 0xC9AE: "seng", 0xC9AF: "sha", 0xC9B8: "shai", 0xC9BA: "shan", 0xC9CA: "shang", 0xC9D2: "shao", 0xC9DD: "she", 0xC9E9: "shen", 0xC9F9: "sheng", 0xCAA6: "shi", 0xCAD5: "shou", 0xCADF: "shu", 0xCBA2: "shua", 0xCBA4: "shuai", 0xCBA8: "shuan", 0xCBAA: "shuang", 0xCBAD: "shui", 0xCBB1: "shun", 0xCBB5: "shuo", 0xCBB9: "si", 0xCBC9: "song", 0xCBD1: "sou", 0xCBD4: "su", 0xCBE1: "suan", 0xCBE4: "sui", 0xCBEF: "sun", 0xCBF2: "suo", 0xCBFA: "ta", 0xCCA5: "tai", 0xCCAE: "tan", 0xCCC0: "tang", 0xCCCD: "tao", 0xCCD8: "te", 0xCCD9: "teng", 0xCCDD: "ti", 0xCCEC: "tian", 0xCCF4: "tiao", 0xCCF9: "tie", 0xCCFC: "ting", 0xCDA8: "tong", 0xCDB5: "tou", 0xCDB9: "tu", 0xCDC4: "tuan", 0xCDC6: "tui", 0xCDCC: "tun", 0xCDCF: "tuo", 0xCDDA: "wa", 0xCDE1: "wai", 0xCDE3: "wan", 0xCDF4: "wang", 0xCDFE: "wei", 0xCEC1: "wen", 0xCECB: "weng", 0xCECE: "wo", 0xCED7: "wu", 0xCEF4: "xi", 0xCFB9: "xia", 0xCFC6: "xian", 0xCFE0: "xiang", 0xCFF4: "xiao", 0xD0A8: "xie", 0xD0BD: "xin", 0xD0C7: "xing", 0xD0D6: "xiong", 0xD0DD: "xiu", 0xD0E6: "xu", 0xD0F9: "xuan", 0xD1A5: "xue", 0xD1AB: "xun", 0xD1B9: "ya", 0xD1C9: "yan", 0xD1EA: "yang", 0xD1FB: "yao", 0xD2AC: "ye", 0xD2BB: "yi", 0xD2F0: "yin", 0xD3A2: "ying", 0xD3B4: "yo", 0xD3B5: "yong", 0xD3C4: "you", 0xD3D9: "yu", 0xD4A7: "yuan", 0xD4BB: "yue", 0xD4C5: "yun", 0xD4D1: "za", 0xD4D4: "zai", 0xD4DB: "zan", 0xD4DF: "zang", 0xD4E2: "zao", 0xD4F0: "ze", 0xD4F4: "zei", 0xD4F5: "zen", 0xD4F6: "zeng", 0xD4FA: "zha", 0xD5AA: "zhai", 0xD5B0: "zhan", 0xD5C1: "zhang", 0xD5D0: "zhao", 0xD5DA: "zhe", 0xD5E4: "zhen", 0xD5F4: "zheng", 0xD6A5: "zhi", 0xD6D0: "zhong", 0xD6DB: "zhou", 0xD6E9: "zhu", 0xD7A5: "zhua", 0xD7A7: "zhuai", 0xD7A8: "zhuan", 0xD7AE: "zhuang", 0xD7B5: "zhui", 0xD7BB: "zhun", 0xD7BD: "zhuo", 0xD7C8: "zi", 0xD7D7: "zong", 0xD7DE: "zou", 0xD7E2: "zu", 0xD7EA: "zuan", 0xD7EC: "zui", 0xD7F0: "zun", 0xD7F2: "zuo" }
- U.MS.PYS = function (UST) {
- var i, _UCT = UST.charCodeAt(0);
- if (_UCT && (_UCT > 0xB0A0 && _UCT < 0xD7FC)) { for (i = _UCT; (!(_UCT = U.MS.PY[i]) && i > 0xB0A1); ) { i--; } }
- return _UCT;
- }
- U.MS.PYS("你");
- Namespace.register("U.Imges");
- USPhotoImgJson = null;
- U.Imges.ImgReady = (function () {
- var list = [], intervalId = null,
-
- tick = function () {
- var i = 0;
- for (; i < list.length; i++) {
- list[i].end ? list.splice(i--, 1) : list[i]();
- };
- !list.length && stop();
- },
-
- stop = function () {
- clearInterval(intervalId);
- intervalId = null;
- };
- return function (url, ready, load, error) {
- var onready, width, height, newWidth, newHeight,
- img = new Image();
- img.src = url;
-
- if (img.complete) {
- ready.call(img);
- load && load.call(img);
- return;
- };
- width = img.width;
- height = img.height;
-
- img.onerror = function () {
- error && error.call(img);
-
- img = img.onload = img.onerror = null;
- };
-
- img.onreadystatechange = function () {
- if (document.readyState == "complete") {
- newWidth = img.width;
- newHeight = img.height;
-
- if (newWidth !== width || newHeight !== height || newWidth * newHeight > 1024) {
- ready.call(img);
-
- };
- };
- };
-
-
-
-
-
-
-
-
-
-
-
- img.onload = function () {
-
-
-
- load && load.call(img);
-
- img = img.onload = img.onerror = null;
- };
-
-
-
-
-
-
- };
- })();
- U.Imges.imgRoll = function (imgObj, SX, ArcSizeInt) {
- var ArcSize = imgObj.alt == null ? 0 : parseInt(imgObj.alt);
-
- if (SX == "left") {
- ArcSize += 1;
- ArcSize = ArcSize > 4 ? 0 : ArcSize;
- } else if (SX == "right") {
- ArcSize -= 1;
- ArcSize = ArcSize < 0 ? 3 : ArcSize;
- } else if (SX == "int") {
- ArcSize = ArcSizeInt;
- }
-
- imgObj.parentNode.style.width = ArcSize % 2 == 0 ? imgObj.width + (2 * 7) + "px" : imgObj.height + (2 * 7) + "px";
- imgObj.parentNode.style.height = ArcSize % 2 == 0 ? imgObj.height + (2 * 7) + "px" : imgObj.width + (2 * 7) + "px";
- if (!browser.msie) {
- if (ArcSize % 2 != 0) {
- imgObj.style.left = Math.ceil((parseInt(imgObj.parentNode.style.width) - parseInt(imgObj.parentNode.style.height)) / 2) + "px";
- imgObj.style.top = Math.ceil((parseInt(imgObj.parentNode.style.height) - parseInt(imgObj.parentNode.style.width)) / 2) + "px";
- imgObj.parentNode.style.left = parseInt(imgObj.parentNode.style.left) - parseInt(imgObj.style.left) + "px";
- imgObj.parentNode.style.top = parseInt(imgObj.parentNode.style.top) - parseInt(imgObj.style.top) + "px";
- } else {
- imgObj.parentNode.style.left = parseInt(imgObj.parentNode.style.left) + parseInt(imgObj.style.left) + "px";
- imgObj.parentNode.style.top = parseInt(imgObj.parentNode.style.top) + parseInt(imgObj.style.top) + "px";
- imgObj.style.left = "0px";
- imgObj.style.top = "0px";
- }
- }
-
-
-
-
- imgObj.alt = ArcSize;
-
- imgObj.style.filter = 'Progid:DXImageTransform.Microsoft.BasicImage(Rotation=' + ArcSize + ')';
- imgObj.style.WebkitTransform = 'rotate(' + ArcSize * 90 + 'deg)';
- imgObj.style.MozTransform = 'rotate(' + ArcSize * 90 + 'deg)';
- imgObj.style.OTransform = 'rotate(' + ArcSize * 90 + 'deg)';
- }
- U.Imges.Scale = function (ImgObj, nwidth, nheight) {
- var event = arguments.callee.caller.arguments[0] || window.event;
-
- var x = event.clientX - 80;
- var y = event.clientY - 20;
-
- var Scale = nwidth / nheight;
-
- var ArcSize = ImgObj.alt == null ? 0 : parseInt(ImgObj.alt);
- if (document.getElementById("SlideCase_" + ImgObj.id) == null) {
-
- var SlideCase = new U.Imges.SliderContorl(ImgObj.id, 200, 50, x, y, function (percentage) {
- ImgObj.style.width = nwidth * (percentage / 100) + "px";
- ImgObj.style.height = parseInt(ImgObj.style.width) / Scale + "px";
- if (ArcSize % 2 != 0) {
- ImgObj.parentNode.style.width = parseInt(ImgObj.style.height) + (2 * 7) + "px";
- ImgObj.parentNode.style.height = parseInt(ImgObj.style.width) + (2 * 7) + "px";
- if (browser.chrome || browser.firefox) {
- ImgObj.style.left = Math.ceil((parseInt(ImgObj.parentNode.style.width) - parseInt(ImgObj.parentNode.style.height)) / 2) + "px";
- ImgObj.style.top = Math.ceil((parseInt(ImgObj.parentNode.style.height) - parseInt(ImgObj.parentNode.style.width)) / 2) + "px";
- }
- } else {
- ImgObj.parentNode.style.width = parseInt(ImgObj.style.width) + (2 * 7) + "px";
- ImgObj.parentNode.style.height = parseInt(ImgObj.style.height) + (2 * 7) + "px";
- }
- });
- document.body.appendChild(SlideCase);
- }
- }
- U.Imges.SliderContorl = function (id, max, min, left, top, callback) {
- var fadeOut = null;
- var removealertBar = null;
- var percentage = 0;
-
- var SlideCase = document.createElement("div");
- SlideCase.id = "SlideCase_" + id;
- SlideCase.className = "ImgViewer SlideCase";
- SlideCase.style.left = left + "px";
- SlideCase.style.top = top + "px";
-
- SlideCase.onmousedown = function () { return false; }
- SlideCase.onselectstart = function () { return false; }
-
- var SlideBar = document.createElement("div");
- SlideBar.id = "SlideBar"
- SlideBar.className = "SlideBar";
-
- var SlidhingShoe = document.createElement("a");
- SlidhingShoe.id = "SlidhingShoe";
- SlidhingShoe.className = "ImgViewer SlidhingShoe";
-
- var CloseSlideButton = document.createElement("div");
- CloseSlideButton.id = "Slidhing_CloseSlideButton"
- CloseSlideButton.className = "Slidhing_CloseSlideButton";
- CloseSlideButton.onclick = function () { SlideCase.parentNode.removeChild(SlideCase); }
-
- var alertBar = document.createElement("div");
- alertBar.id = "Slidhing_alertBar";
- alertBar.style.display = "none";
- alertBar.className = "ImgViewer Slidhing_alertBar";
-
- SlideBar.appendChild(SlidhingShoe);
- SlideCase.appendChild(SlideBar);
- SlideCase.appendChild(CloseSlideButton);
- SlideCase.appendChild(alertBar);
-
-
- var AlertFadeIn = function () {
-
- alertBar.style.filter = "alpha(opacity=100)";
- alertBar.style.MozOpacity = "1";
- alertBar.style.opacity = "1";
- alertBar.style.display = "inline-block";
-
- clearInterval(fadeOut);
- clearTimeout(removealertBar);
-
- removealertBar = setTimeout(function () {
- i = 100;
- fadeOut = setInterval(function () {
- alertBar.style.filter = "alpha(opacity=" + i + ")";
- alertBar.style.MozOpacity = i * 0.01;
- alertBar.style.opacity = i * 0.01;
- i -= 2;
- if (i == 0) {
- alertBar.style.display = "none";
-
- clearInterval(fadeOut);
- clearTimeout(removealertBar);
- }
- }, 1);
- }, 800);
- }
-
- var mouse_down_or_move = function () {
- var pole = event.clientX - parseInt(SlideCase.style.left) - 25;
-
- pole = pole < 0 ? 0 : pole;
- pole = pole > 120 ? 120 : pole;
- SlidhingShoe.style.left = pole + "px";
-
- alertBar.style.left = pole - 20 + "px";
- percentage = pole * ((max - min) / 120) + min;
- alertBar.innerHTML = Math.round(percentage) + "%";
- callback(percentage);
- }
-
- SlideBar.onmousedown = function () {
- mouse_down_or_move();
- alertBar.style.display = "inline-block";
- }
- SlideBar.onmouseup = function () {
- if (!browser.msie) {
- AlertFadeIn();
- } else {
- clearTimeout(removealertBar);
- removealertBar = setTimeout(function () {
- alertBar.style.display = "none";
- clearTimeout(removealertBar);
- }, 800);
- }
- }
- SlidhingShoe.onmousedown = function () {
- var ismoveSlide = true;
- document.body.onmousemove = function () {
- if (ismoveSlide == true) {
- mouse_down_or_move();
- alertBar.style.display = "inline-block";
- if (!browser.msie) {
- alertBar.style.filter = "alpha(opacity=" + i + ")";
- alertBar.style.MozOpacity = i * 0.01;
- alertBar.style.opacity = i * 0.01;
- }
- }
- }
- document.body.onmouseup = function () {
- if (document.all != undefined) SlidhingShoe.releaseCapture();
- ismoveSlide = false;
- if (!browser.msie) {
- AlertFadeIn();
- } else {
- clearTimeout(removealertBar);
- removealertBar = setTimeout(function () {
- alertBar.style.display = "none";
- clearTimeout(removealertBar);
- }, 800);
- }
- document.body.onmouseup = function () { return false; }
- }
- }
- return SlideCase;
- }
- U.Imges.ActuleScale = function (ImgObj, width, height) {
- ImgObj.style.width = width + "px";
- ImgObj.style.height = height + "px";
- ImgObj.parentNode.style.width = parseInt(ImgObj.style.width) + (2 * 7) + "px";
- ImgObj.parentNode.style.height = parseInt(ImgObj.style.height) + (2 * 7) + "px";
- }
- U.Imges.CreatePhotoCase = function (imgid, url, key) {
- var nwidth = 0;
- var nheight = 0;
-
-
-
-
- var IV_Div = window.top.$('#ImgViewer_Div')[0];
- if (IV_Div != null) {
- var img = $("Img", IV_Div)[0];
-
- img.id = "ImgViewer_Img" + imgid;
-
- var _ready = function () {
- return function () {
- var nImg = new Image();
- nImg.src = url;
- var nwidth = nImg.width;
- var nheight = nImg.height;
- if (nImg.width > 800 || nImg.height > 600) {
- if (nImg.width > nImg.height) {
- nwidth = 800;
- nheight = nwidth / (nImg.width / nImg.height);
- } else {
- nheight = 600;
- nwidth = nheight * (nImg.width / nImg.height);
- }
- } else if (nImg.height < 200) {
- nheight = 200;
- nwidth = nheight * (nImg.width / nImg.height);
- } else {
- nwidth = nImg.width;
- nheight = nImg.height;
- }
- img.style.height = nheight + "px";
- img.style.width = nwidth + "px";
- IV_Div.style.height = nheight + 14 + "px";
- IV_Div.style.width = nwidth + 14 + "px";
- var strCode = '<a class="samllRadius ImgViewer ImgViewer_CloseIcon" href="javascript:void(0)" onclick="this.parentNode.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode.parentNode); if (top.document.getElementById(\'SlideCase_' + img.id + '\')!=null){ top.document.getElementById(\'SlideCase_' + img.id + '\').parentNode.removeChild(top.document.getElementById(\'SlideCase_' + img.id + '\'));}"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ImgRollLeftIcon" href="javascript:void(0)" onclick="U.Imges.imgRoll(document.getElementById(\'ImgViewer_Img' + imgid + '\'),\'left\')" ></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ImgRollRightIcon" href="javascript:void(0)" onclick="U.Imges.imgRoll(document.getElementById(\'ImgViewer_Img' + imgid + '\'),\'right\')"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ScaleIcon" href="javascript:void(0)" onclick="U.Imges.Scale(document.getElementById(\'ImgViewer_Img' + imgid + '\'),' + nwidth + ',' + nheight + ')"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ActuleIcon" href="javascript:void(0)" onclick="U.Imges.ActuleScale(document.getElementById(\'ImgViewer_Img' + imgid + '\'),' + nwidth + ',' + nheight + ')"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ThumbnailsIcon" href="javascript:void(0)" onclick="if(USPhotoImgJson!=null) document.getElementById(\'ImgViewer_ThumbnailsCase\').style.display=\'inline-block\';"></a>';
- $('#ImgViewer_manager')[0].innerHTML = strCode;
- U.Imges.ActuleScale(img, nwidth, nheight);
- }
- }
- _ready = _ready();
-
- U.Imges.ImgReady(url, _ready, function () { img.src = url; }, function () { alert("加载失败"); ImgDiv.parentNode.removeChild(ImgDiv); });
- return;
- }
-
- var ImgDiv = document.createElement("div");
-
-
- ImgDiv.id = "ImgViewer_Div";
- ImgDiv.className = "ImgViewer_Div ImgViewer_shadow";
-
- ImgDiv.onmousedown = function () { return false; }
- ImgDiv.onselectstart = function () { return false; }
-
- var managerBar = document.createElement("div");
- managerBar.id = "ImgViewer_managerBar";
- managerBar.className = "ImgViewer ImgViewer_managerBar";
-
- var manager = document.createElement("div");
- manager.id = "ImgViewer_manager";
- manager.className = "ImgViewer_manager";
-
- var USPhotoImg = document.createElement("img");
- USPhotoImg.id = "ImgViewer_Img" + imgid;
- USPhotoImg.className = "ImgViewer_Img";
- USPhotoImg.alt = "0";
- USPhotoImg.src = "img/loading.png";
- USPhotoImg.onmousedown = function () { U.D.DragMouseDown(ImgDiv, "ImgViewer"); }
- if (key != null && key != "") {
-
- var gobackdiv = document.createElement("div");
- gobackdiv.id = "ImgViewer_gobackdiv";
- gobackdiv.className = "ImgViewer_gobackdiv";
-
- var go = document.createElement("i");
- go.id = "ImgViewer_go";
- go.className = "ImgViewer ImgViewer_go";
- go.onclick = function () {
- goorback("g");
- }
- go.onmouseover = function () {
- gobackdiv.style.display = "inline-block";
- }
- go.onmouseout = function () {
- gobackdiv.style.display = "none";
- }
-
- var back = document.createElement("i");
- back.id = "ImgViewer_back";
- back.className = "ImgViewer ImgViewer_back";
- back.onclick = function () {
- goorback("b");
- }
- back.onmouseover = function () {
- gobackdiv.style.display = "inline-block";
- }
- back.onmouseout = function () {
- gobackdiv.style.display = "none";
- }
- USPhotoImg.onmouseover = function () {
- gobackdiv.style.display = "inline-block";
- }
- USPhotoImg.onmouseout = function () {
- gobackdiv.style.display = "none";
- }
- gobackdiv.appendChild(go);
- gobackdiv.appendChild(back);
- ImgDiv.appendChild(gobackdiv);
- var goorback = function (gb) {
-
- if (document.getElementById("SlideCase_" + USPhotoImg.id) != null) document.getElementById("SlideCase_" + USPhotoImg.id).parentNode.removeChild(document.getElementById("SlideCase_" + USPhotoImg.id));
- U.Imges.imgRoll(USPhotoImg, "int", 0);
- if (gb == "g") {
- key--;
- } else if (gb == "b") {
- key++;
- }
- key = key < 0 ? USPhotoImgJson.length - 1 : key;
- key = key > USPhotoImgJson.length - 1 ? 0 : key;
- var Img = USPhotoImgJson[key];
-
-
-
- USPhotoImg.id = "ImgViewer_Img" + Img.imgid;
-
- var _e = function () {
- return function () {
- var nwidth = this.width;
- var nheight = this.height;
- if (this.width > 800 || this.height > 600) {
- if (this.width > this.height) {
- nwidth = 800;
- nheight = nwidth / (this.width / this.height);
- } else {
- nheight = 600;
- nwidth = nheight * (this.width / this.height);
- }
- } else if (this.height < 200) {
- nheight = 200;
- nwidth = nheight * (this.width / this.height);
- } else {
- nwidth = this.width;
- nheight = this.height;
- }
- ImageReady(Img.imgid, nwidth, nheight);
- gobackdiv.style.bottom = (nheight + (2 * 7)) / 2 - 15 + "px";
- }
- }
- _e = _e();
- U.Imges.ImgReady(Img.imgurl, _e, function () { USPhotoImg.src = this.src; }, function () { alert("加载失败"); ImgDiv.parentNode.removeChild(ImgDiv); });
- }
- }
- managerBar.appendChild(manager);
- ImgDiv.appendChild(USPhotoImg);
- ImgDiv.appendChild(managerBar);
-
- var ImageReady = function (Imgid, width, height) {
- var strCode = '<a class="samllRadius ImgViewer ImgViewer_CloseIcon" href="javascript:void(0)" onclick="this.parentNode.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode.parentNode); if (top.document.getElementById(\'SlideCase_' + USPhotoImg.id + '\')!=null){ top.document.getElementById(\'SlideCase_' + USPhotoImg.id + '\').parentNode.removeChild(top.document.getElementById(\'SlideCase_' + USPhotoImg.id + '\'));}"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ImgRollLeftIcon" href="javascript:void(0)" onclick="U.Imges.imgRoll(document.getElementById(\'ImgViewer_Img' + Imgid + '\'),\'left\')" ></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ImgRollRightIcon" href="javascript:void(0)" onclick="U.Imges.imgRoll(document.getElementById(\'ImgViewer_Img' + Imgid + '\'),\'right\')"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ScaleIcon" href="javascript:void(0)" onclick="U.Imges.Scale(document.getElementById(\'ImgViewer_Img' + Imgid + '\'),' + width + ',' + height + ')"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ActuleIcon" href="javascript:void(0)" onclick="U.Imges.ActuleScale(document.getElementById(\'ImgViewer_Img' + Imgid + '\'),' + width + ',' + height + ')"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ThumbnailsIcon" href="javascript:void(0)" onclick="if(USPhotoImgJson!=null) document.getElementById(\'ImgViewer_ThumbnailsCase\').style.display=\'inline-block\';"></a>';
- manager.innerHTML = strCode;
- U.Imges.ActuleScale(USPhotoImg, width, height);
- }
- var _e = function () {
- return function () {
- var nwidth = this.width;
- var nheight = this.height;
- if (this.width > 800 || this.height > 600) {
- if (this.width > this.height) {
- nwidth = 800;
- nheight = nwidth / (this.width / this.height);
- } else {
- nheight = 600;
- nwidth = nheight * (this.width / this.height);
- }
- } else if (this.height < 200) {
- nheight = 200;
- nwidth = nheight * (this.width / this.height);
- } else {
- nwidth = this.width;
- nheight = this.height;
- }
- ImageReady(imgid, nwidth, nheight);
- if (key != null & key != "") gobackdiv.style.bottom = (nheight + (2 * 7)) / 2 - 15 + "px";
- }
- }
- _e = _e();
- U.Imges.ImgReady(url, _e, function () { USPhotoImg.src = this.src; }, function () { alert("加载失败"); ImgDiv.parentNode.removeChild(ImgDiv); });
- document.body.appendChild(ImgDiv);
- }
- U.Imges.ThumbnailsCase = function (ImgJson) {
- var fadeOut = null;
- var removealertBar = null;
- var ThumbnailsArray = document.getElementById("ImgViewer_ThumbnailsArray");
- var ThumbnailsSlideShoe = document.getElementById("ImgViewer_ThumbnailsSlideShoe");
- var ThumbnailsSlideBar = document.getElementById("ImgViewer_ThumbnailsSlideBar");
- var ThumbnailsAlertBar = document.getElementById("ImgViewer_ThumbnailsAlertBar");
- var strCode = "";
- var Json = eval('(' + ImgJson + ')');
- USPhotoImgJson = Json;
- for (var i in Json) {
- var Img = Json[i]
- strCode += '<img onclick="U.Imges.CreatePhotoCase(\'' + Img.imgid + '\',\'' + Img.imgurl + '\',\'' + i + '\')" class="ImgViewer_ThumbnailsImg" src="' + Img.imgThumbnails + '"/>';
- }
- ThumbnailsArray.innerHTML = strCode;
- ThumbnailsArray.style.width = (Json.length / 2) * 68 + "px";
- ThumbnailsArray.parentNode.parentNode.style.display = "inline-block";
- var mousemoveOrdown = function () {
- pole = event.clientX - parseInt(ThumbnailsSlideShoe.parentNode.parentNode.getBoundingClientRect().left) - 35;
- pole = pole < 0 ? 0 : pole;
- pole = pole > 235 ? 235 : pole;
- ThumbnailsSlideShoe.style.left = pole + "px";
- ThumbnailsAlertBar.style.left = pole - 10 + "px";
- var ThumbnailsArrayleft = Math.ceil(pole) * ((parseInt(ThumbnailsArray.style.width) - 278) / 235);
- if (ThumbnailsArrayleft > 0) {
- ThumbnailsAlertBar.innerHTML = Math.round(ThumbnailsArrayleft) + 35 + "%";
- ThumbnailsArray.style.marginLeft = "-" + ThumbnailsArrayleft + "px";
- } else {
- ThumbnailsAlertBar.innerHTML = "小于范围值~~";
- ThumbnailsArray.style.marginLeft = "0px";
- }
- }
- var AlertFadeIn = function () {
-
- ThumbnailsAlertBar.style.filter = "alpha(opacity=100)";
- ThumbnailsAlertBar.style.MozOpacity = "1";
- ThumbnailsAlertBar.style.opacity = "1";
- ThumbnailsAlertBar.style.display = "inline-block";
-
- clearInterval(fadeOut);
- clearTimeout(removealertBar);
-
- removealertBar = setTimeout(function () {
- i = 100;
- fadeOut = setInterval(function () {
- ThumbnailsAlertBar.style.filter = "alpha(opacity=" + i + ")";
- ThumbnailsAlertBar.style.MozOpacity = i * 0.01;
- ThumbnailsAlertBar.style.opacity = i * 0.01;
- i -= 2;
- if (i == 0) {
- ThumbnailsAlertBar.style.display = "none";
-
- clearInterval(fadeOut);
- clearTimeout(removealertBar);
- }
- }, 1);
- }, 800);
- }
-
- ThumbnailsSlideBar.onmousedown = function () {
- mousemoveOrdown();
- ThumbnailsAlertBar.style.display = "inline-block";
- }
- ThumbnailsSlideBar.onmouseup = function () {
- if (!browser.msie) {
- AlertFadeIn();
- } else {
- clearTimeout(removealertBar);
- removealertBar = setTimeout(function () {
- ThumbnailsAlertBar.style.display = "none";
- clearTimeout(removealertBar);
- }, 800);
- }
- }
- ThumbnailsSlideShoe.onmousedown = function () {
- var ismoveSlide = true;
- document.body.onmousemove = function () {
- if (ismoveSlide == true) {
- mousemoveOrdown();
- ThumbnailsAlertBar.style.display = "inline-block";
- if (!browser.msie) {
- ThumbnailsAlertBar.style.filter = "alpha(opacity=" + i + ")";
- ThumbnailsAlertBar.style.MozOpacity = i * 0.01;
- ThumbnailsAlertBar.style.opacity = i * 0.01;
- }
- }
- }
- document.body.onmouseup = function () {
- if (document.all != undefined) ThumbnailsSlideShoe.releaseCapture();
- ismoveSlide = false;
- if (!browser.msie) {
- AlertFadeIn();
- } else {
- clearTimeout(removealertBar);
- removealertBar = setTimeout(function () {
- ThumbnailsAlertBar.style.display = "none";
- clearTimeout(removealertBar);
- }, 800);
- }
- document.body.onmouseup = function () { return false; }
- }
- }
- }
- U.M.SEKP = function (IF, CB, TF) {
- IF.onkeypress = function () { if (event.keyCode == 10 || event.keyCode == 13) { if (TF) { U.M.StopDefault(); } if (CB) { CB(); } } }
- }
- U.MD.SMGif = function (_div, _load) {
- if (_load == false) _div.removeChild(U.M.GetCById(_div, "U_SMLD"));
- else $$("img", { "id": "U_SMLD", "className": "U_SMLDGif", "src": "/img/us_smlding.gif" }, _div);
- }
- U.M.TeSize = function (UDOD, UMH) {
- var i;
- var _UDE = ["propertychange", "input", "focus"];
- var _ = function () {
- var _USH = UDOD.scrollHeight, _UDTD = $(UDOD);
- if (_USH != UDOD.clientHeight && _USH != UDOD.currHeight) {
- if (!UMH || _USH < UMH) { _UDTD.addAttrArray({ currHeight: _USH, style: { overflowY: "hidden", height: _USH + "px"} }); }
- else { _UDTD.addAttrArray({ style: { overflowY: "auto"} }); }
- }
- }
- for (i = 0; i < _UDE.length; i++) { U.M.AddEvent(_UDE[i], UDOD, _); }
- }
- U.M.stopRefresh = function () {
- U.M.keyfun = U.M.keyfun || function () { if (event.keyCode == 116) { event.keyCode = 0; U.M.StopBubble(); U.M.StopDefault(); return false; } }
- var _UDE = { keydown: U.M.keyfun, keyup: U.M.keyfun }; $(document).unbind(_UDE).bind(_UDE);
- }
- U.M.AsynApply = function (UTE, UDE) {
- var _ = U.M.apply(UTE, UDE); return function () { setTimeout(_, 0); }
- }
- U.M.forEach = function (UDE, UFN, UC) {
- for (var i in UDE) {
- if (UDE.hasOwnProperty(i) && UFN.call(UC, UDE[i], i, UDE) === false) { break; }
- }
- }
- U.M.ImageZoom = function (UI, UZ) {
- var _TF, _UH, _UW; UI = UI || this;
- if (UI.height != 0 && UI.width != 0) {
- if (UZ["height"]) { if (UZ["height"] < UI.height) { _TF = UZ["height"] / UI.height; _UH = UZ["height"]; } else { _TF = 1; _UH = UI.height; }; _UW = UI.width * _TF; }
- else if (UZ["width"]) { if (UZ["width"] < UI.width) { _TF = UZ["width"] / UI.width; _UW = UZ["width"]; } else { _TF = 1; _UW = UI.width; }; _UH = UI.height * _TF; }
- $(UI).addAttrArray({ "style": { "width": _UW + "px", "height": _UH + "px"} });
- }
- }
- U.M.visi = function (UOE, UTE) {
- var _, cb, i, j, _UTP, _UTF, _UCE = ["", "webkit", "moz", "ms", "o"], _UME = ["hidden", "visibilityState", "visibilitychange"];
- for (i = 0; i < _UCE.length; i++) { for (j = 0; j < _UME.length; j++) { if ((_UTP = _UCE[i] + (_UCE[i] ? _UME[j].substr(0, 1).toUpperCase() + _UME[j].substr(1) : _UME[j])) in document) { _UME[j] = _UTP; _UTF = true; } } if (_UTF) { break; } }
- if (_UTF) { U.M.AddEvent(_UME[2], U.M.apply(null, [[U.M.visi.cb, [UOE, UTE, _UME[1]]]])); }
- else { U.M.IsActivity(UOE, UTE); }
- }
- U.M.visi.cb = function (UOE, UTE, UTP) {
- (document[UTP] ? UOE : UTE)();
- }
- U.M.Cookies.is = function () { return navigator.cookieEnabled; }
- U.M.WOP = function (UHT) {
- var _UDD, _UDW = window.open("javascript:void((function(){document.open();document.domain='" + document.domain + "';document.close()})())");
- (UHT) && (_UDD = _UDW.document.open(), _UDD.write(UHT), _UDD.close());
- return _UDW;
- }
- U.M.asyncInnerHTML = function (UH, UCB) {
- var _UOD = $$("div", { "innerHTML": UH }), UOF = $$("frag");
- if (_UOD.firstChild) { UOF.appendChild(_UOD.firstChild); setTimeout(arguments.callee, 0); }
- else { UCB[UOF]; }
-
- }
- U.M.setHome = function (UDOD, URL) {
- UDOD = UDOD || event.srcElement;
- try { UDOD.style.behavior = "url(#default#homepage)"; UDOD.setHomePage(URL); return true; }
- catch (e) {
- if (window.netscape) {
- try {
- if (netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")) {
- Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch).setCharPref('browser.startup.homepage', URL); return true;
- }
- }
- catch (e) { }
- }
- }
- return false;
- }
- U.M.Collec = function (UTI, URL) {
- try { window.external.addFavorite(URL, UTI); return true; }
- catch (e) { try { window.sidebar.addpanel(UTI, URL, ""); return true; } catch (e) { } }
- return false;
- }
- U.M.GetJsUrl = function (UDID) {
- var i, _UIE, _UPE, _USE, _UDE = document.scripts;
- if ((_UPE = document.currentScript)) { _UPE = _UPE.src; } else { try { throw Error(); } catch (e) { _UPE = e.stack || e.sourceURL || e.stacktrace; } }
- if (!_UPE) { for (i = _UDE.length; i > -1; i--) { _USE = _UDE[i].src.split("/"); _UPE = _USE[_USE.length - 1]; if ((_UDE[i].src == UDID) || (_UPE.indexOf(UDID) == 0 && ((_UPE = _UPE.substr(0, UDID.length).chatAt(0)) == "") || _UPE == "?")) { return [_USE.slice(-1), _USE[_USE.length - 1]]; } } }
- _UPE = [_UPE, _UPE.split("/")]; _UPE[1] = _UPE[1][_UPE[1].length - 1]; return _UPE;
- }
- U.M.Cookies.get = function (UKY, UKN) {
- return U.M.GetCookie(UKY, UKN);
- }
- U.UI.HtmlEditor = function () {
- var _UFE, _ = function () {
- new _UFE.init();
- }
- _UFE = _.prototype = {
- init: function () { }
- }
- _UFE.init = _UFE;
- return _;
- }
- U.Menu = function () {
- var _USE, _ = function () { }
- _USE = _.prototype = {
- init: function () { }
- }
- return _;
- };
- U.UI.MenuNA = function (UDE, UDOD) { }
- U.CD.CGQB = function (_cb, _bool) {
- U.MD.IframeLoad($$("iframe", {
- "id": "U_CDomain",
- "name": "U_CDomain",
- "width": 0,
- "height": 0,
- "style": { "display": "none" },
- "src": U.CD.cdom
- }, document.body), [
- [U.CD.AsynCGQB, [_cb, _bool]]
- ]);
- }
- U.CD.AsynCGQB = function (_cb, _bool) {
- var _el = this;
- U.MN.message({
- obj: "#U_CDomain",
- url: U.CD.cdom,
- Sender: true,
- me: function (UDE) {
- var _USE = UDE[2].split("=");
- if (_USE[1] == "") { U.M.Cookies.del(_USE[0]); }
- else { U.M.Cookies.set(UDE[2]); }
- document.wincookie = UDE[2];
-
- if (window["U_Domain"]) {
- if (window["U_Domain"].location.href == U.CD.dom) {
- U.CD.AsynDomain(U.M.apply(null, [
- [U.CD.AsynGQB, [UDE[0], null, _cb]]
- ]));
- return;
- }
- } else {
- U.CD.Introduce(U.M.apply(null, [
- [U.CD.AsynGQB, [UDE[0], null, _cb]]
- ]));
- }
- $(_el).remove();
- },
- url: "http://www.143.cn/Crossdomain.htm"
- }).post("", "cdomain", _bool);
- }
- U.UP.UploadFileType = function (UTP, UTF) {
- var _UFT,
- _UIE = UTF;
- UTP = UTP.substr(UTP.lastIndexOf(".") + 1);
- (UTF == null) && (UTF = U.UP.SFT("B"));
- _UFT = UTF.indexOf(UTP) != -1;
- ((_UIE == null) && (_UFT = (!_UFT)));
- return _UFT;
- }
- U.A.Upload = $.Upload = function (UDE) {
- if ("FormData" in window) { new U.A.Upload.init(UDE); }
- else { throw new Error("Browser version is too low"); }
- }
- U.A.Upload.init = function (UDE) {
- U.Ut.AddObj(this, UDE);
- }
- U.A.Upload.init.prototype = {
-
- create: function () {
- var i = 0,
- _URL = this.url,
- _UAE = this.systemAjax = this.CA(),
- _UCE = ["progress", "load", "error", "abort"],
- _UDE = this.file,
- _UFE = new FormData(),
- _UPE = this.parameter,
- _USE = this.config || {},
- _UKE = { "CONTENT-TYPE": "multipart/form-data" };
-
- if ((this.tf)) { _UDE = [_UDE]; } else { _UDE = _UDE.files; }
- for (; i < 1; i++) { _UFE.append(Guid.newGuid(), _UDE); }
- for (i in _UPE) { _UFE.append(i, _UPE[i]); }
-
- (_UAE.overrideMimeType) && (_UAE.overrideMimeType("text/html"));
- _UAE.open("POST", _URL, true);
- for (i in _UKE) {
- if (_UKE.hasOwnProperty(i)) { _USE[i] = _USE[i] || _UKE[i] }
- }
-
- for (i in _USE) {
- try {
- if (i in _UAE) { _UAE[i] = _USE[i]; } else { _UAE.setRequestHeader(i, _USE[i]); }
- } catch (e) { }
- }
-
- for (i = 0; i < _UCE.length; i++) { _UAE["on" + _UCE[i]] = U.M.apply(this, _UCE[i]) }
-
- _UAE.send(_UFE);
- },
-
- CA: function () {
- var i, _UAE, _UDE = U.A.ASet;
- for (i = 0; i < _UDE.length; i++) {
- if ((_UAE = _UDE[i]).readyState == 4) {
- _UAE.onreadystatechange = U.M.apply();
- _UAE.abort();
- return _UAE;
- }
- }
- _UDE.push((_UAE = new XMLHttpRequest()));
- return _UAE;
- },
- close: function () {
- this.systemAjax.abort();
- },
-
- progress: function (UE) {
- (this.pro) && (this.pro(UE));
- },
-
- load: function () {
- var _USE, _UE = new U.A.Error(),
- _UDE = this.systemAjax;
-
- if (_UDE.status === 200) {
- _USE = U.M.toList(_UDE.responseText);
- if (!_UE.isError(_USE)) {
- (this.lo) && (this.lo({
- r: _UDE,
- context: this.context,
- error: null,
- value: _USE
- }));
- }
- }
-
- else { this.error(_USE); }
- },
-
- error: function (UDE) {
- (this.err) && (this.err(UDE || {
- State: "500",
- LogID: Guid.newGuid(),
- Value: "502 Bad Gateway",
- Dt: new Date(),
- Type: "Ajax"
- }));
- },
-
- abort: function (UE) {
- (this.ab) && (this.ab(UE));
- }
- }
- Namespace.register("U.CV");
- U.CV.UL = function (URL, UOE, UEE, UME) {
- return new U.CV.ULinit(URL, UOE, UME).create(UME);
- }
- U.CV.ULinit = function (URL, UOE, UME) {
- this.USK; this.URL = URL || window.location.protocol + "//" + window.location.host; this.UOE = UOE;
- }
- U.CV.ULinit.prototype = {
- sockets: {},
- events: ["connect", "connect_failed", "error", "reconnecting", "reconnect", "disconnect"],
- create: function (UME) {
- if (this.sockets[this.URL]) { return this.sockets[this.URL]; }
- else {
- U.MD.DynamicLoad("http://socketio.1473.cn/socket.io/socket.io.js", "js", U.M.apply(this, [[this.Asyncreate, [UME]]]));
- return this;
- }
- },
- Asyncreate: function (UME) {
- var i, j, _UOE = this.UOE, _UEE = this.UEE, _UDE = this.events, _USE = this.USK = io.connect(this.URL, UME || { "reopen delay": 3000, "connect timeout": 5000, "try multiple transports": true, "reconnect": true, "max reconnection attempts": 10 });
- for (i = 0; i < _UDE.length; i++) { _USE.on(_UDE[i], this[_UDE[i]]); }
- for (i in _UOE) { if (_UOE.hasOwnProperty(i)) { _USE.on(i, U.M.apply(this, [[this.asyn, [_UOE[i]]]])); } }
- for (i = 0; i < _UEE.length; i++) { this.emit.apply(this, U.Ut.isArguments(_UEE[i]) ? _UEE[i] : [_UEE[i]]); } this.UEE = [];
- },
- abort: function () {
- this.USK.disconnect();
- },
- asyn: function (UDE) {
- var _UAE = Array.prototype.slice.call(arguments); _UAE.splice(0, 1);
- (UDE) && (UDE.apply(null, _UAE));
- },
- on: function () {
- var _UDE = arguments, _USE = this.USK;
- if (_UDE.length > 1) { _USE.on(_UDE[0], U.M.apply(this, [[this.on, [_UDE[1]]]])); }
- else if (U.Ut.isObject(_UDE)) { _UDE.Each(function (UVE, UIE) { _USE.on(_UIE, U.M.apply(this, [[this.on, [asyn]]])); }) }
- },
- emit: function (UME) {
- var i, _USE = this.USK;
- if (_USE) { if (U.Ut.isString(UME)) { _USE.emit.apply(_USE, arguments); } else { _$(UME).Each(function (UDE, UIE) { _USE.emit(UIE, UDE[UIE]); }); } }
- else { (!this.UEE) && (this.UEE = []); this.UEE.push(U.Ut.isString(UME) ? arguments : UME); } return this;
- },
- connect: function (UE) {
- },
- "connect_failed": function (UE) {
- },
- error: function () {
- },
- reconnecting: function () {
- },
- reconnect: function () {
- },
- disconnect: function () {
- }
- };
- Namespace.register("U.DW");
- U.DW.local = function (UTP, UDE) {
- if ((!browser.msie || Number(browser.ver[2]) > 6)) {
- try {
- var _UDE = new Date();
- (!UTP) && (_UDE.setTime(_UDE.getTime() + (9999 * 24 * 60 * 60 * 1000)), _UBE.expires = _UDE.toUTCString());
- } catch (e) { }
- }
- return new U.DW.local.init(UTP);
- }
- U.DW.local.init = function (UTP, UDE) {
- U.Ut.AddObj(this, {
- UTP: UTP,
- UTF: (this.UJE = (UTP ? window.sessionStorage : window.localStorage)),
- UJE: this.UJE || $$("input", { "type": "hidden", "style": { "behavior": "url(#default#userdata)"} }, document.body),
- UDE: UDE || {},
- UGE: null,
- scb: null,
- date: {}
- });
-
- (UDE && UDE.event) && (this.on(UDE.event));
- return this;
- }
- U.DW.local._cb = function (UTH) {
- clearInterval(UTH.UTI);
- UTH.UTI = setInterval(function () {
- var _UDE = U.DW.local.iep(UTH);
- (_UDE && UTH.UDE.event) && (UTH.UDE.event(_UDE));
- }, 5000);
- };
- U.DW.local.iep = function (UTH, UE) {
- var i,
- _UOE = UTH.date,
- _UNE = UTH.UJE;
- UTH.date = U.DW.local.get(UTH),
- _UKE = UTH.getAllKey();
- for (i = 0; i < _UKE.length; i++) {
- if (_UOE[_UKE[i]] != _UNE[_UKE[i]]) {
- return {
- Property: null,
- key: _UKE[i],
- oldValue: _UOE[_UKE[i]],
- newValue: _UNE[_UKE[i]],
- url: UE ? (UE.url || UE.uri) : document.location.host
- };
- }
- }
- }
- U.DW.local.get = function (UTH) {
- var i, _UKE; UTH.date = [];
- if (browser.ver[1] == "msie" && browser.ver[2].toInt() < 9) {
- _UKE = UTH.getAllKey();
- for (i = 0; i < _UKE.length; i++) {
- UTH.date[_UKE[i]] = UTH.UJE[_UKE[i]];
- }
- }
- return UTH.date;
- }
- U.DW.local.init.prototype = {
-
- on: function (UDE) {
- this.off();
- this.UDE.event = UDE;
- this.scb = U.M.apply(this, this["storage"]);
- U.DW.local.get(this);
- this.UTF ? (U.M.AddEvent("storage", window, this.scb), U.M.AddEvent("storage", document, this.scb)) : U.DW.local._cb(this, this.getAll());
- },
-
- off: function () {
- this.UTF ? (U.M.ReEvent("storage", window, this.scb), U.M.ReEvent("storage", document, this.scb)) : clearInterval(this.UTI);
- },
-
- set: function (UDE, USE) {
- if (this.UJE) {
- var i, _UME = this.UJE;
- (USE != null) && (i = UDE, UDE = {}, UDE[i] = USE);
-
- for (i in UDE) {
- (UDE.hasOwnProperty(i)) && (this.UTF ? _UME.setItem(i, UDE[i]) : (_UME.setAttribute(i, UDE[i]), _UME.save("us")));
- }
- }
- return this;
- },
-
- storage: function (UE) {
- if (this.UDE.event) {
- var _UCB = this.UDE.event;
- if (UE.newValue == null) {
- UE = U.DW.local.iep(this);
- }
- (_UCB && UE) && (_UCB(UE));
- U.M.StopBubble();
- }
- },
-
- get: function (UIE) {
- if (this.UJE) {
- var i, _UME = this.UJE,
- _USE = {},
- _UTP = this.UTF ? "getItem" : (_UME.load("us"), "getAttribute");
- if (U.Ut.isString(UIE)) {
- return _UME[_UTP](UIE);
- }
- if (U.Ut.isArray(UIE)) {
- for (i = 0; i < UIE.length; i++) {
- _USE[UIE[i]] = _UME[_UTP](UIE[i]);
- }
- }
- else if (U.Ut.isObject(UIE)) {
- for (i in UIE) { (UIE.hasOwnProperty(i)) && (_USE[i] = _UME[_UTP](i)); }
- }
- return _USE;
- }
- },
-
- getAll: function () {
- var i, _UKE, _USE = {},
- _UME = this.UJE;
- if (this.UTF) {
- for (i = 0; i < _UME.length; i++) {
- _UKE = this.key(i);
- _USE[_UKE] = this.get(_UKE);
- }
- }
- else {
- _UME = _UME.XMLDocument.documentElement.attributes;
- for (i = 0; i < _UME.length; i++) {
- _USE[_UME[i].name] = _UME[i].nodeValue;
- }
- }
- return _USE;
- },
-
- getAllKey: function () {
- if (this.UJE) {
- var _UME = this.UJE,
- _USE = [];
- if (this.UTF) {
- for (i = 0; i < _UME.length; i++) {
- _USE.push(this.key(i));
- }
- }
- else {
- _UME = _UME.XMLDocument.documentElement.attributes;
- for (i = 0; i < _UME.length; i++) { _USE.push(_UME[i].name); }
- }
- return _USE;
- }
- },
-
- remove: function (UIE) {
- if (this.UJE) {
- var i,
- _UME = this.UJE,
- _UTP = this.UTF ? "removeItem" : "removeAttribute";
- if (U.Ut.isString(UIE)) {
- _UME[_UTP](UIE);
- }
- else if (U.Ut.isArray(UIE)) {
- for (i = 0; i < UIE.length; i++) {
- _UME[_UTP](UIE[i]);
- }
- }
- else {
- for (i in UIE) {
- (UIE.hasOwnProperty(i)) && (_UME[_UTP](i));
- }
- }
- (!this.UTF) && (_UME.save("us"));
- } return this;
- },
-
- clear: function () {
- if (this.UJE) {
- if (this.UTF) { this.UJE.clear(); }
- else {
- var i, _UME = this.UJE;
- _UME.load("us");
- _UME = _UME.XMLDocument.documentElement.attributes;
- for (i = 0; i < _UME.length; i++) { _UME.remove(_UME[i].name); }
- }
- }
- },
-
- key: function (UI) {
- if (this.UJE) {
- if (this.UTF) {
- return this.UJE.key(UI);
- }
- else {
- var _UME = this.UJE;
- _UME.load("us"),
- _UDM = _UME.XMLDocument.documentElement.attrbutes;
- if (_UDM[UI]) {
- return _UDM[UI].name;
- }
- }
- }
- },
-
- length: function () {
- if (this.UJE) {
- if (this.UTF) { return this.UJE.length; }
- else {
- var _UL, _UDM,
- _UME = this.UJE;
- _UME.load("us");
- _UDM = _UME.XMLDocument;
- ((_UDM = _UDM.childNodes[0]) && (_UL = _UDM.attributes.length));
- return _UL;
- }
- }
- }
- }
- Namespace.register("U.E");
- U.E.CryptoJS = function (s, p) {
- var m = {}, l = m.lib = {}, n = function () {
- }, r = l.Base = { extend: function (b) {
- n.prototype = this;
- var h = new n;
- b && h.mixIn(b);
- h.hasOwnProperty("init") || (h.init = function () {
- h.$super.init.apply(this, arguments)
- });
- h.init.prototype = h;
- h.$super = this;
- return h
- }, create: function () {
- var b = this.extend();
- b.init.apply(b, arguments);
- return b
- }, init: function () {
- }, mixIn: function (b) {
- for (var h in b)
- b.hasOwnProperty(h) && (this[h] = b[h]);
- b.hasOwnProperty("toString") && (this.toString = b.toString)
- }, clone: function () {
- return this.init.prototype.extend(this)
- }
- },
- q = l.WordArray = r.extend({ init: function (b, h) {
- b = this.words = b || [];
- this.sigBytes = h != p ? h : 4 * b.length
- }, toString: function (b) {
- return (b || t).stringify(this)
- }, concat: function (b) {
- var h = this.words, a = b.words, j = this.sigBytes;
- b = b.sigBytes;
- this.clamp();
- if (j % 4)
- for (var g = 0; g < b; g++)
- h[j + g >>> 2] |= (a[g >>> 2] >>> 24 - 8 * (g % 4) & 255) << 24 - 8 * ((j + g) % 4);
- else if (65535 < a.length)
- for (g = 0; g < b; g += 4)
- h[j + g >>> 2] = a[g >>> 2];
- else
- h.push.apply(h, a);
- this.sigBytes += b;
- return this
- }, clamp: function () {
- var b = this.words, h = this.sigBytes;
- b[h >>> 2] &= 4294967295 <<
- 32 - 8 * (h % 4);
- b.length = s.ceil(h / 4)
- }, clone: function () {
- var b = r.clone.call(this);
- b.words = this.words.slice(0);
- return b
- }, random: function (b) {
- for (var h = [], a = 0; a < b; a += 4)
- h.push(4294967296 * s.random() | 0);
- return new q.init(h, b)
- }
- }), v = m.enc = {}, t = v.Hex = { stringify: function (b) {
- var a = b.words;
- b = b.sigBytes;
- for (var g = [], j = 0; j < b; j++) {
- var k = a[j >>> 2] >>> 24 - 8 * (j % 4) & 255;
- g.push((k >>> 4).toString(16));
- g.push((k & 15).toString(16))
- }
- return g.join("")
- }, parse: function (b) {
- for (var a = b.length, g = [], j = 0; j < a; j += 2)
- g[j >>> 3] |= parseInt(b.substr(j,
- 2), 16) << 24 - 4 * (j % 8);
- return new q.init(g, a / 2)
- }
- }, a = v.Latin1 = { stringify: function (b) {
- var a = b.words;
- b = b.sigBytes;
- for (var g = [], j = 0; j < b; j++)
- g.push(String.fromCharCode(a[j >>> 2] >>> 24 - 8 * (j % 4) & 255));
- return g.join("")
- }, parse: function (b) {
- for (var a = b.length, g = [], j = 0; j < a; j++)
- g[j >>> 2] |= (b.charCodeAt(j) & 255) << 24 - 8 * (j % 4);
- return new q.init(g, a)
- }
- }, u = v.Utf8 = { stringify: function (b) {
- try {
- return decodeURIComponent(escape(a.stringify(b)))
- } catch (g) {
- throw Error("Malformed UTF-8 data");
- }
- }, parse: function (b) {
- return a.parse(unescape(encodeURIComponent(b)))
- }
- },
- g = l.BufferedBlockAlgorithm = r.extend({ reset: function () {
- this._data = new q.init;
- this._nDataBytes = 0
- }, _append: function (b) {
- "string" == typeof b && (b = u.parse(b));
- this._data.concat(b);
- this._nDataBytes += b.sigBytes
- }, _process: function (b) {
- var a = this._data, g = a.words, j = a.sigBytes, k = this.blockSize, m = j / (4 * k), m = b ? s.ceil(m) : s.max((m | 0) - this._minBufferSize, 0);
- b = m * k;
- j = s.min(4 * b, j);
- if (b) {
- for (var l = 0; l < b; l += k)
- this._doProcessBlock(g, l);
- l = g.splice(0, b);
- a.sigBytes -= j
- }
- return new q.init(l, j)
- }, clone: function () {
- var b = r.clone.call(this);
- b._data = this._data.clone();
- return b
- }, _minBufferSize: 0
- });
- l.Hasher = g.extend({ cfg: r.extend(), init: function (b) {
- this.cfg = this.cfg.extend(b);
- this.reset()
- }, reset: function () {
- g.reset.call(this);
- this._doReset()
- }, update: function (b) {
- this._append(b);
- this._process();
- return this
- }, finalize: function (b) {
- b && this._append(b);
- return this._doFinalize()
- }, blockSize: 16, _createHelper: function (b) {
- return function (a, g) {
- return (new b.init(g)).finalize(a)
- }
- }, _createHmacHelper: function (b) {
- return function (a, g) {
- return (new k.HMAC.init(b,
- g)).finalize(a)
- }
- }
- });
- var k = m.algo = {};
- return m
- } (Math);
- (function (s) {
- function p(a, k, b, h, l, j, m) {
- a = a + (k & b | ~k & h) + l + m;
- return (a << j | a >>> 32 - j) + k
- }
- function m(a, k, b, h, l, j, m) {
- a = a + (k & h | b & ~h) + l + m;
- return (a << j | a >>> 32 - j) + k
- }
- function l(a, k, b, h, l, j, m) {
- a = a + (k ^ b ^ h) + l + m;
- return (a << j | a >>> 32 - j) + k
- }
- function n(a, k, b, h, l, j, m) {
- a = a + (b ^ (k | ~h)) + l + m;
- return (a << j | a >>> 32 - j) + k
- }
- for (var r = U.E.CryptoJS, q = r.lib, v = q.WordArray, t = q.Hasher, q = r.algo, a = [], u = 0; 64 > u; u++)
- a[u] = 4294967296 * s.abs(s.sin(u + 1)) | 0;
- q = q.MD5 = t.extend({ _doReset: function () {
- this._hash = new v.init[1732584193, 4023233417, 2562383102, 271733878]
- },
- _doProcessBlock: function (g, k) {
- for (var b = 0; 16 > b; b++) {
- var h = k + b, w = g[h];
- g[h] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360
- }
- var b = this._hash.words, h = g[k + 0], w = g[k + 1], j = g[k + 2], q = g[k + 3], r = g[k + 4], s = g[k + 5], t = g[k + 6], u = g[k + 7], v = g[k + 8], x = g[k + 9], y = g[k + 10], z = g[k + 11], A = g[k + 12], B = g[k + 13], C = g[k + 14], D = g[k + 15], c = b[0], d = b[1], e = b[2], f = b[3], c = p(c, d, e, f, h, 7, a[0]), f = p(f, c, d, e, w, 12, a[1]), e = p(e, f, c, d, j, 17, a[2]), d = p(d, e, f, c, q, 22, a[3]), c = p(c, d, e, f, r, 7, a[4]), f = p(f, c, d, e, s, 12, a[5]), e = p(e, f, c, d, t, 17, a[6]), d = p(d, e, f, c, u, 22, a[7]),
- c = p(c, d, e, f, v, 7, a[8]), f = p(f, c, d, e, x, 12, a[9]), e = p(e, f, c, d, y, 17, a[10]), d = p(d, e, f, c, z, 22, a[11]), c = p(c, d, e, f, A, 7, a[12]), f = p(f, c, d, e, B, 12, a[13]), e = p(e, f, c, d, C, 17, a[14]), d = p(d, e, f, c, D, 22, a[15]), c = m(c, d, e, f, w, 5, a[16]), f = m(f, c, d, e, t, 9, a[17]), e = m(e, f, c, d, z, 14, a[18]), d = m(d, e, f, c, h, 20, a[19]), c = m(c, d, e, f, s, 5, a[20]), f = m(f, c, d, e, y, 9, a[21]), e = m(e, f, c, d, D, 14, a[22]), d = m(d, e, f, c, r, 20, a[23]), c = m(c, d, e, f, x, 5, a[24]), f = m(f, c, d, e, C, 9, a[25]), e = m(e, f, c, d, q, 14, a[26]), d = m(d, e, f, c, v, 20, a[27]), c = m(c, d, e, f, B, 5, a[28]), f = m(f, c,
- d, e, j, 9, a[29]), e = m(e, f, c, d, u, 14, a[30]), d = m(d, e, f, c, A, 20, a[31]), c = l(c, d, e, f, s, 4, a[32]), f = l(f, c, d, e, v, 11, a[33]), e = l(e, f, c, d, z, 16, a[34]), d = l(d, e, f, c, C, 23, a[35]), c = l(c, d, e, f, w, 4, a[36]), f = l(f, c, d, e, r, 11, a[37]), e = l(e, f, c, d, u, 16, a[38]), d = l(d, e, f, c, y, 23, a[39]), c = l(c, d, e, f, B, 4, a[40]), f = l(f, c, d, e, h, 11, a[41]), e = l(e, f, c, d, q, 16, a[42]), d = l(d, e, f, c, t, 23, a[43]), c = l(c, d, e, f, x, 4, a[44]), f = l(f, c, d, e, A, 11, a[45]), e = l(e, f, c, d, D, 16, a[46]), d = l(d, e, f, c, j, 23, a[47]), c = n(c, d, e, f, h, 6, a[48]), f = n(f, c, d, e, u, 10, a[49]), e = n(e, f, c, d,
- C, 15, a[50]), d = n(d, e, f, c, s, 21, a[51]), c = n(c, d, e, f, A, 6, a[52]), f = n(f, c, d, e, q, 10, a[53]), e = n(e, f, c, d, y, 15, a[54]), d = n(d, e, f, c, w, 21, a[55]), c = n(c, d, e, f, v, 6, a[56]), f = n(f, c, d, e, D, 10, a[57]), e = n(e, f, c, d, t, 15, a[58]), d = n(d, e, f, c, B, 21, a[59]), c = n(c, d, e, f, r, 6, a[60]), f = n(f, c, d, e, z, 10, a[61]), e = n(e, f, c, d, j, 15, a[62]), d = n(d, e, f, c, x, 21, a[63]);
- b[0] = b[0] + c | 0;
- b[1] = b[1] + d | 0;
- b[2] = b[2] + e | 0;
- b[3] = b[3] + f | 0
- }, _doFinalize: function () {
- var a = this._data, k = a.words, b = 8 * this._nDataBytes, h = 8 * a.sigBytes;
- k[h >>> 5] |= 128 << 24 - h % 32;
- var l = s.floor(b /
- 4294967296);
- k[(h + 64 >>> 9 << 4) + 15] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360;
- k[(h + 64 >>> 9 << 4) + 14] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
- a.sigBytes = 4 * (k.length + 1);
- this._process();
- a = this._hash;
- k = a.words;
- for (b = 0; 4 > b; b++)
- h = k[b], k[b] = (h << 8 | h >>> 24) & 16711935 | (h << 24 | h >>> 8) & 4278255360;
- return a
- }, clone: function () {
- var a = t.clone.call(this);
- a._hash = this._hash.clone();
- return a
- }
- });
- r.MD5 = t._createHelper(q);
- r.HmacMD5 = t._createHmacHelper(q)
- })(Math);
- Namespace.register("U.K");
- U.K._REVERSE_MAP;
- U.K._MAP = {
- 8: 'backspace',
- 9: 'tab',
- 13: 'enter',
- 16: 'shift',
- 17: 'ctrl',
- 18: 'alt',
- 20: 'capslock',
- 27: 'esc',
- 32: 'space',
- 33: 'pageup',
- 34: 'pagedown',
- 35: 'end',
- 36: 'home',
- 37: 'left',
- 38: 'up',
- 39: 'right',
- 40: 'down',
- 45: 'ins',
- 46: 'del',
- 91: 'meta',
- 93: 'meta',
- 224: 'meta'
- };
- U.K._KEYCODE_MAP = {
- 106: '*',
- 107: '+',
- 109: '-',
- 110: '.',
- 111: '/',
- 186: ';',
- 187: '=',
- 188: ',',
- 189: '-',
- 190: '.',
- 191: '/',
- 192: '`',
- 219: '[',
- 220: '\\',
- 221: ']',
- 222: '\''
- };
- U.K._SHIFT_MAP = {
- '~': '`',
- '!': '1',
- '@': '2',
- '#': '3',
- '$': '4',
- '%': '5',
- '^': '6',
- '&': '7',
- '*': '8',
- '(': '9',
- ')': '0',
- '_': '-',
- '+': '=',
- ':': ';',
- '\"': '\'',
- '<': ',',
- '>': '.',
- '?': '/',
- '|': '\\'
- };
- U.K._SPECIAL_ALIASES = {
- 'option': 'alt',
- 'command': 'meta',
- 'return': 'enter',
- 'escape': 'esc',
- 'plus': '+',
- 'mod': /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? 'meta' : 'ctrl'
- };
- U.K.start = function () {
-
- for (var i = 1; i < 20; ++i) {
- U.K._MAP[111 + i] = 'f' + i;
- }
-
- for (i = 0; i <= 9; ++i) {
- U.K._MAP[i + 96] = i.toString();
- }
- }
- U.K._characterFromEvent = function (e) {
-
- if (e.type == 'keypress') {
- var character = String.fromCharCode(e.which);
-
-
-
-
-
-
-
-
-
- if (!e.shiftKey) {
- character = character.toLowerCase();
- }
- return character;
- }
-
- if (U.K._MAP[e.which]) {
- return U.K._MAP[e.which];
- }
- if (U.K._KEYCODE_MAP[e.which]) {
- return U.K._KEYCODE_MAP[e.which];
- }
-
-
-
-
- return String.fromCharCode(e.which).toLowerCase();
- }
- U.K._modifiersMatch = function (modifiers1, modifiers2) {
- return modifiers1.sort().join(',') === modifiers2.sort().join(',');
- }
- U.K._eventModifiers = function (e) {
- var modifiers = [];
- if (e.shiftKey) {
- modifiers.push('shift');
- }
- if (e.altKey) {
- modifiers.push('alt');
- }
- if (e.ctrlKey) {
- modifiers.push('ctrl');
- }
- if (e.metaKey) {
- modifiers.push('meta');
- }
- return modifiers;
- }
- U.K._isModifier = function (key) {
- return key == 'shift' || key == 'ctrl' || key == 'alt' || key == 'meta';
- }
- U.K._getReverseMap = function () {
- if (!_REVERSE_MAP) {
- _REVERSE_MAP = {};
- for (var key in U.K._MAP) {
-
-
- if (key > 95 && key < 112) {
- continue;
- }
- if (U.K._MAP.hasOwnProperty(key)) {
- _REVERSE_MAP[U.K._MAP[key]] = key;
- }
- }
- }
- return _REVERSE_MAP;
- }
- U.K._pickBestAction = function (key, modifiers, action) {
-
-
- if (!action) {
- action = U.K._getReverseMap()[key] ? 'keydown' : 'keypress';
- }
-
-
- if (action == 'keypress' && modifiers.length) {
- action = 'keydown';
- }
- return action;
- }
- U.K._keysFromString = function (combination) {
- if (combination === '+') {
- return ['+'];
- }
- combination = combination.replace(/\+{2}/g, '+plus');
- return combination.split('+');
- }
- U.K._getKeyInfo = function (combination, action) {
- var keys;
- var key;
- var i;
- var modifiers = [];
-
-
- keys = U.K._keysFromString(combination);
- for (i = 0; i < keys.length; ++i) {
- key = keys[i];
-
- if (U.K._SPECIAL_ALIASES[key]) {
- key = U.K._SPECIAL_ALIASES[key];
- }
-
-
-
- if (action && action != 'keypress' && U.K._SHIFT_MAP[key]) {
- key = U.K._SHIFT_MAP[key];
- modifiers.push('shift');
- }
-
- if (U.K._isModifier(key)) {
- modifiers.push(key);
- }
- }
-
-
- action = U.K._pickBestAction(key, modifiers, action);
- return {
- key: key,
- modifiers: modifiers,
- action: action
- };
- }
- U.K._belongsTo = function (element, ancestor) {
- if (element === null || element === document) {
- return false;
- }
- if (element === ancestor) {
- return true;
- }
- return U.K._getReverseMap(element.parentNode, ancestor);
- }
- U.K.Mousetrap = function (targetElement) {
- var self = this;
- targetElement = targetElement || document;
- if (!(self instanceof U.K.Mousetrap)) {
- return new U.K.Mousetrap(targetElement);
- }
-
- self.target = targetElement;
-
- self._callbacks = {};
-
- self._directMap = {};
-
- var _sequenceLevels = {};
-
- var _resetTimer;
-
- var _ignoreNextKeyup = false;
-
- var _ignoreNextKeypress = false;
-
- var _nextExpectedAction = false;
-
- function _resetSequences(doNotReset) {
- doNotReset = doNotReset || {};
- var activeSequences = false,
- key;
- for (key in _sequenceLevels) {
- if (doNotReset[key]) {
- activeSequences = true;
- continue;
- }
- _sequenceLevels[key] = 0;
- }
- if (!activeSequences) {
- _nextExpectedAction = false;
- }
- }
-
- function _getMatches(character, modifiers, e, sequenceName, combination, level) {
- var i;
- var callback;
- var matches = [];
- var action = e.type;
-
- if (!self._callbacks[character]) {
- return [];
- }
-
- if (action == 'keyup' && U.K._isModifier(character)) {
- modifiers = [character];
- }
-
-
- for (i = 0; i < self._callbacks[character].length; ++i) {
- callback = self._callbacks[character][i];
-
-
- if (!sequenceName && callback.seq && _sequenceLevels[callback.seq] != callback.level) {
- continue;
- }
-
-
- if (action != callback.action) {
- continue;
- }
-
-
-
-
-
-
-
- if ((action == 'keypress' && !e.metaKey && !e.ctrlKey) || U.K._modifiersMatch(modifiers, callback.modifiers)) {
-
-
-
-
-
- var deleteCombo = !sequenceName && callback.combo == combination;
- var deleteSequence = sequenceName && callback.seq == sequenceName && callback.level == level;
- if (deleteCombo || deleteSequence) {
- self._callbacks[character].splice(i, 1);
- }
- matches.push(callback);
- }
- }
- return matches;
- }
-
- function _fireCallback(callback, e, combo, sequence) {
-
- if (self.stopCallback(e, e.target || e.srcElement, combo, sequence)) {
- return;
- }
- if (callback(e, combo) === false) {
- U.M.StopDefault(e);
- U.M.StopBubble(e);
- }
- }
-
- self._handleKey = function (character, modifiers, e) {
- var callbacks = _getMatches(character, modifiers, e);
- var i;
- var doNotReset = {};
- var maxLevel = 0;
- var processedSequenceCallback = false;
-
- for (i = 0; i < callbacks.length; ++i) {
- if (callbacks[i].seq) {
- maxLevel = Math.max(maxLevel, callbacks[i].level);
- }
- }
-
- for (i = 0; i < callbacks.length; ++i) {
-
-
-
-
-
- if (callbacks[i].seq) {
-
-
-
-
-
-
-
-
- if (callbacks[i].level != maxLevel) {
- continue;
- }
- processedSequenceCallback = true;
-
- doNotReset[callbacks[i].seq] = 1;
- _fireCallback(callbacks[i].callback, e, callbacks[i].combo, callbacks[i].seq);
- continue;
- }
-
-
- if (!processedSequenceCallback) {
- _fireCallback(callbacks[i].callback, e, callbacks[i].combo);
- }
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- var ignoreThisKeypress = e.type == 'keypress' && _ignoreNextKeypress;
- if (e.type == _nextExpectedAction && !U.K._isModifier(character) && !ignoreThisKeypress) {
- _resetSequences(doNotReset);
- }
- _ignoreNextKeypress = processedSequenceCallback && e.type == 'keydown';
- };
-
- function _handleKeyEvent(e) {
-
- if (typeof e.which !== 'number') {
- e.which = e.keyCode;
- }
- var character = U.K._characterFromEvent(e);
-
- if (!character) {
- return;
- }
-
- if (e.type == 'keyup' && _ignoreNextKeyup === character) {
- _ignoreNextKeyup = false;
- return;
- }
- self.handleKey(character, U.K._eventModifiers(e), e);
- }
-
- function _resetSequenceTimer() {
- clearTimeout(_resetTimer);
- _resetTimer = setTimeout(_resetSequences, 1000);
- }
-
- function _bindSequence(combo, keys, callback, action) {
-
-
- _sequenceLevels[combo] = 0;
-
- function _increaseSequence(nextAction) {
- return function () {
- _nextExpectedAction = nextAction;
- ++_sequenceLevels[combo];
- _resetSequenceTimer();
- };
- }
-
- function _callbackAndReset(e) {
- _fireCallback(callback, e, combo);
-
-
-
- if (action !== 'keyup') {
- _ignoreNextKeyup = U.K._characterFromEvent(e);
- }
-
-
- setTimeout(_resetSequences, 10);
- }
-
-
-
-
-
-
-
-
-
- for (var i = 0; i < keys.length; ++i) {
- var isFinal = i + 1 === keys.length;
- var wrappedCallback = isFinal ? _callbackAndReset : _increaseSequence(action || U.K._getKeyInfo(keys[i + 1]).action);
- _bindSingle(keys[i], wrappedCallback, action, combo, i);
- }
- }
-
- function _bindSingle(combination, callback, action, sequenceName, level) {
-
- self._directMap[combination + ':' + action] = callback;
-
- combination = combination.replace(/\s+/g, ' ');
- var sequence = combination.split(' ');
- var info;
-
-
- if (sequence.length > 1) {
- _bindSequence(combination, sequence, callback, action);
- return;
- }
- info = U.K._getKeyInfo(combination, action);
-
-
- self._callbacks[info.key] = self._callbacks[info.key] || [];
-
- _getMatches(info.key, info.modifiers, { type: info.action }, sequenceName, combination, level);
-
-
-
-
-
-
- self._callbacks[info.key][sequenceName ? 'unshift' : 'push']({
- callback: callback,
- modifiers: info.modifiers,
- action: info.action,
- seq: sequenceName,
- level: level,
- combo: combination
- });
- }
-
- self._bindMultiple = function (combinations, callback, action) {
- for (var i = 0; i < combinations.length; ++i) {
- _bindSingle(combinations[i], callback, action);
- }
- };
-
- U.M.AddEvent(targetElement, 'keypress', _handleKeyEvent);
- U.M.AddEvent(targetElement, 'keydown', _handleKeyEvent);
- U.M.AddEvent(targetElement, 'keyup', _handleKeyEvent);
- }
- U.K.Mousetrap = function () { };
- U.K.Mousetrap.prototype.bind = function (keys, callback, action) {
- var self = this;
- keys = keys instanceof Array ? keys : [keys];
- self._bindMultiple.call(self, keys, callback, action);
- return self;
- };
- U.K.Mousetrap.prototype.unbind = function (keys, action) {
- var self = this;
- return self.bind.call(self, keys, function () { }, action);
- };
- U.K.Mousetrap.prototype.trigger = function (keys, action) {
- var self = this;
- if (self._directMap[keys + ':' + action]) {
- self._directMap[keys + ':' + action]({}, keys);
- }
- return self;
- };
- U.K.Mousetrap.prototype.reset = function () {
- var self = this;
- self._callbacks = {};
- self._directMap = {};
- return self;
- };
- U.K.Mousetrap.prototype.stopCallback = function (e, element) {
- var self = this;
-
- if ((' ' + element.className + ' ').indexOf(' mousetrap ') > -1) {
- return false;
- }
- if (U.K._getReverseMap(element, self.target)) {
- return false;
- }
-
- return element.tagName == 'INPUT' || element.tagName == 'SELECT' || element.tagName == 'TEXTAREA' || element.isContentEditable;
- };
- U.K.Mousetrap.prototype.handleKey = function () {
- var self = this;
- return self._handleKey.apply(self, arguments);
- };
- U.K.Mousetrap.addKeycodes = function (object) {
- for (var key in object) {
- if (object.hasOwnProperty(key)) {
- U.K._MAP[key] = object[key];
- }
- }
- _REVERSE_MAP = null;
- };
- U.K.Mousetrap.init = function () {
- var documentMousetrap = Mousetrap(document);
- for (var method in documentMousetrap) {
- if (method.charAt(0) !== '_') {
- Mousetrap[method] = (function (method) {
- return function () {
- return documentMousetrap[method].apply(documentMousetrap, arguments);
- };
- } (method));
- }
- }
- };
- Namespace.register("U.ME");
- U.ME.DH = function (UDOD, UTM, UTF, UDTD) {
- if (UDOD) {
- var i;
- var _UDE = UTM ? setInterval(U.M.apply(UDOD, [[U.ME.DHGDAMXG, [UTF, 0]]]), UTM) : null;
- UDOD.onmouseout = UDOD.onmouseover = U.M.apply(UDOD, [[U.ME.DHGDAM, [arguments, _UDE]]]);
- if (UDTD) {
- for (i = 0; i < UDTD.length; i++) {
- (UDTD[i]) && (UDTD[i].onclick = U.M.apply(UDTD[i], [[U.ME.DHQH, [i, arguments, _UDE]]]));
- };
- };
- }
- }
- U.ME.DHQH = function (ITF, UAE, UDE) {
- clearInterval(UDE);
- U.ME.DHGDAMXG.apply(UAE[0], [UAE[2], ITF]);
- U.ME.DH.apply(window, UAE);
- }
- U.ME.DHGDAM = function (USC, UDE) {
- if (!U.M.onmouseout(this)) {
- var _UTP = event.type;
- clearInterval(UDE);
- if (_UTP == "mouseout") {
- U.ME.DH.apply(window, USC);
- }
- }
- }
- U.ME.DHGDAMXG = function (UTF, ITF) {
- UTF = UTF == "L" ? "width" : "height";
- var _UFT = ITF === 0,
- _UDOD = $(this),
- _UDAD = _UDOD.Child(),
- _UDSD = _UDAD[_UFT ? 0 : _UDAD.length - 1],
- _UWH = "client" + (UTF.charAt(0).toUpperCase() + UTF.substr(1)),
- _UTP = [{ "overflow": "hidden" }, {}];
- if (_UDSD[_UWH]) {
- _UTP[0][UTF] = "0px"; _UTP[1][UTF] = _UDSD[_UWH] + "px";
- (_UFT) && (_UTP.reverse());
- $(_UDSD).addAttrArray({ "style": _UTP[0] }).animate(_UTP[1], 500, _UFT ? U.M.apply(null, [[U.M.apply(_UDOD, [[_UDOD.append, [_UDSD, 0]]])], [U.M.apply($(_UDSD), [[$(_UDSD).addAttrArray, [{ "style": _UTP[0]}]]])]]) : null);
- (!_UFT) && (this.insertBefore(_UDSD, _UDAD[0]));
- }
- }
- U.ME.YHT = function (UDOD, UDTD, UCL, ITF, UAT, ITM, UTF) {
- if (UDOD) {
- var i, _UDCD = $(UDTD).Child(),
- _UDE = [],
- _UKE = [ITF || 0],
- _UTM = null;
- if (ITM > 0) {
- _UTM = setInterval(U.M.apply(null, [[U.ME.YHTXZ, [UDOD, UDTD, _UKE, UCL]]]), ITM || 1000);
- }
- _UKE[1] = _UTM;
- if (!UTF) {
- U.ME.YHTXZ(UDOD, UDTD, _UKE, UCL);
- } else if (_UKE[0] >= _UDCD.length) {
- _UKE[0] = 0;
- };
- UTF = null;
- UDOD.onmouseover = UDOD.onmouseout = U.M.apply(UDOD, [[U.M.StopBubble], [U.ME.YHTQX, [arguments, _UTM, _UKE]]]);
- for (i = 0; i < _UDCD.length; i++) {
- _UDCD[i].onmouseover = _UDCD[i].onmouseout = U.M.apply(_UDCD[i], [[U.M.StopBubble], [U.ME.YHTQX, [arguments, _UTM, _UKE, i]]]);
- }
- if (UAT) {
- for (i = 0; i < 2; i++) {
- (UAT[i]) && (UAT[i].onclick = U.M.apply(UAT[i], [[U.ME.SXYHT, [(i - 1) * 2, _UKE, _UTM, arguments]]]));
- }
- }
- return _UTM;
- }
- }
- U.ME.YHTXZ = function (UDOD, UDTD, UDE, UCL) {
- var _UDAD = $(UDOD).Child();
- if ((!UDOD || UDOD) == (document || !_UDAD)) {
- clearInterval(UDE[1]);
- }
- else {
- U.ME.ZSYHTXZ(UDOD, UDTD, UDE, UCL);
- UDE[0]++; (UDE[0] >= _UDAD.length) && (UDE[0] = 0);
- }
- }
- U.ME.SXYHT = function (UTF, ITF, UTM, UCS) {
- var _UDCD = $(UCS[0]).Child();
- clearInterval(UTM); UCS[3] = (ITF[0] += UTF);
- if (ITF[0] < 0) {
- UCS[3] = _UDCD.length + UCS[3];
- }
- else if (ITF[0] >= _UDCD.length) {
- UCS[3] = 0;
- }
- U.ME.YHT.apply(this, UCS);
- }
- U.ME.YHTQX = function (UCS, UTM, UKE, ITF) {
- if (!U.M.onmouseout(this)) {
- var _UTP = event.type,
- i = UKE[0] - 1;
- clearInterval(UTM);
- i = i < 0 ? $(UCS[0]).Child().length - 1 : i;
- UCS[3] = UKE[0] = ITF != null ? ITF : UKE[0];
- if (_UTP == "mouseout") {
- UCS[3] = ITF != null ? ITF : i;
- UCS = Array.prototype.slice.call(UCS);
- UCS[6] = true; UCS[3]++;
- U.ME.YHT.apply(this, UCS);
- }
- else if ((ITF != null && (i != ITF))) {
- U.ME.ZSYHTXZ(UCS[0], UCS[1], UKE, UCS[2]);
- }
- }
- }
- U.ME.ZSYHTXZ = function (UDOD, UDTD, UDE, UCL) {
- var i, _UST,
- _UDAD = $(UDOD).Child(),
- _UDCD = UDTD ? $(UDTD).Child() : null;
- for (i = 0; i < _UDAD.length; i++) {
- $(_UDAD).addAttrArray({ "style": i == UDE[0] ? { "filter": "alpha(opacity=0)", "-moz-opacity": "0", "opacity": "0", "display": "block"} : { "display": "none"} }, i);
- if (UDTD) {
- _UST = _UDCD[i].className;
- _UDCD[i].className = _UST.replace(" " + UCL, "").replace(UCL, "") + (i == UDE[0] ? ((_UST ? " " : "") + UCL) : "");
- }
- }
- $(_UDAD[UDE[0]]).animate({ "-moz-opacity": "1", "opacity": "1", "filter": "alpha(opacity=100)" }, 500);
- }
- U.ME.LBTP = function (UDE) {
- var _UIE = UDE.i || 0,
- _UDOD = $(UDE.e),
- UDAD = _UDOD.Child();
- if (UDAD.length && UDE["s"]) {
- $(UDAD[_UIE]).addAttrArray(UDE["s"]);
- U.Ut.AddObj(UDE, { a: UDAD, i: UDE.i || 0, p: UDE.p || _UDOD.Parent(), w: UDE.w || 1 });
- return new U.ME.LBTPF(UDE);
- }
- }
- U.ME.LBTPF = function (UDE) {
- U.Ut.AddObj(this, UDE);
- this.init();
- $(UDE.a).bind("click", U.M.apply(this, this.click));
- }
- U.ME.LBTPF.prototype = {
- init: function () {
- (this.UTI) && (clearInterval(this.UTI));
- this.UTI = setInterval(U.M.apply(this, this.time), this.t || 5000);
- },
- click: function (UIE) {
- var _UDOD, _UDPD,
- _UIE = (UIE != null && !isNaN(Number(UIE)));
- if (_UIE) {
- _UIE = this.i + UIE;
- } else {
- _UDOD = event.srcElement;
- while (_UDOD && (_UDPD = _UDOD.parentNode) != this.e) {
- _UDOD = _UDPD;
- }
- _UIE = this.a.indexOf(_UDOD);
- }
- if (_UIE != -1 && _UIE != null) { this.time(_UIE); this.init(); }
- },
- time: function (UIE) {
- if (this.a[0] && this.a[0].parentNode == this.e) {
- var i, _ULT, _UAE, _UDOD,
- _UDPD = this.p,
- _UDAD = this.a,
- _UL = _UDAD.length,
- _UIE = this.i;
- if (UIE == null) {
- this.i += this.w;
- if (_UIE == _UL - 1) {
- this.w = -1; this.i = _UL - 2;
- } else if (!_UIE) {
- this.i = this.w = 1;
- }
- } else {
- this.i = UIE;
- }
- $(_UDAD[_UIE]).addAttrArray(this.h);
- $((_UDOD = _UDAD[this.i])).addAttrArray(this.s);
- if (this.af) {
- this.af(this);
- }
- else {
- _UAE = [_UDPD.scrollLeft, _UDPD.offsetWidth, _UDOD.offsetLeft - this.e.offsetLeft, _UDOD.offsetWidth];
- if (_UAE[0] + _UAE[1] < _UAE[2]) {
- _ULT = _UAE[2] + _UAE[3] * 2 - _UAE[1];
- } else if (_UAE[2] < _UAE[0]) {
- _ULT = _UAE[2] - _UAE[3] * 2;
- }
- (_ULT != null) && ($(_UDPD).animate({ "scrollLeft": _ULT }, 100));
- };
- (this.cb) && (this.cb());
- }
- else {
- clearInterval(this.UTI);
- }
- }
- }
- Namespace.register("U.MN");
- U.MN.nif = window.notificationInstance;
- if (window.webkitNotifications) {
-
- U.MN._UPS = window.webkitNotifications;
-
- U.M.HEPropert(U.MN._UPS, "onshow", function () {
- return this.ondisplay;
- },
- function (UVE) { this.ondisplay = UVE; });
- U.MN.UFN = function (UMT, UDE) {
- var _UCE = U.MN._UPS.createNotification(UDE.icon, UMT, UDE.body);
- _UCE.show(); return _UCE;
- }
-
- U.MN.UFN.prototype = window.webkitNotifications;
- U.M.Setprototype(U.MN.UFN, {
- requestPermission: function (UCB) { U.MN._UPS.requestPermission(UCB); },
- permission: function () {
- return { 0: "granted", 1: "denied", 2: "default"}[U.MN._UPS.checkPermission()];
- },
- close: function () { this.cancel(); }
- });
- }
- U.MN.Notis = window.Notification = window.Notification || window.webkitNotifications;
- U.MN.Noti = function (UDE) {
- return U.MN.Noti.get(UDE);
- }
- U.MN.Noti.get = function (UDE) {
- var _UDE = U.MN.Notis;
- if (_UDE) {
- if (_UDE.permission == "granted") {
- if (UDE) {
- return new U.MN.Noti.init(UDE);
- }
- }
- if (_UDE.permissi0on != "denied") {
- _UDE.requestPermission(function (UTF) {
- if (UTF == "granted") { U.MN.Noti.get(UDE); }
- });
- }
- }
- }
- U.MN.Noti.init = function (UDE) {
- this.UNM; this.UT = UDE; this.UE = UDE.e; this.time = UDE.t || 0;
- }
- U.MN.Noti.checkPermission = function () {
- }
- U.MN.Noti.show = function () {
- try { U.MN.nif.show() }
- catch (e) { return e; }
- }
- U.MN.Noti.cancel = function () {
- try { U.MN.nif.cancel() }
- catch (e) { return e; }
- }
- U.MN.Noti.init.prototype = {
- create: function (UMT, UDE, USE) {
- var _UME, _UME, _UTF = UDE == "string", Noti = U.MN.Notis; this.UE = USE = USE ? USE : this.UE;
- if (Noti.permission == "granted") {
- _UME = this.UNM = new Noti(UMT, UDE);
- (USE) && (this.event(USE)); (this.time) && (this.timerc(this.time));
- }
- else if (Noti.permission != "denied") { Noti.requestPermission(U.M.apply(this, [[this.Permission, [UMT, UDE]]])); }
- else { U.Alert("请启动消息推送!"); }
- },
- Permission: function (UMT, UDE, UTF) {
- if (UTF == "granted") { this.create(UMT, UDE); }
- },
- set: function (UDE) {
- U.Ut.AddObj(this.UNM, UDE);
- },
- bind: function (UDE, UAE) {
- $(this.UNM).bind(UDE, UAE);
- },
- unbind: function () {
- $(this.UNM).unbind(UDE, UAE);
- },
- event: function (UDE) {
- var i, _UND = this.UNM, _UDE = { oc: "onclick", ocl: "onclose", oe: "onerror", os: "onshow" };
- for (i in UDE) { _UND[i] = _UND[_UDE[i]] = U.M.apply(this, [[this.aevent, [i, _UDE[i]]]]); }
- },
- aevent: function (UTF, UTP) {
- var _UDE = this.UE;
- if (_UDE && _UDE[UTF]) {
- if (U.Ut.isFunction(_UDE[UTF])) {
- _UDE[UTF]();
- }
- else { U.M.apply(this, _UDE[UTF])(); }
- if (UTF == "oc" || UTF == "onclick") {
- this.close();
- }
- }
- },
- close: function () {
- if (this.UNM) {
- this.UNM.close();
- this.dispose();
- }
- },
- dispose: function () { this.UT = this.UE = this.UNM = null; },
- timerc: function (UT, UFE) {
- setTimeout(U.M.apply(this, [[UFE], [this.close]]), UT);
- },
- show: function () { U.MN.show(); },
- cancel: function () { U.MN.cancel(); }
- }
- U.MN.message = function (UDE) {
- return new U.MN.message.get.init(UDE);
- }
- U.MN.message._UTF = ("onmessage" in window);
- U.MN.message._UFS = function (UDE) {
- try {
- var _UME, _USE = "";
- if (U.MN.message._UTF) { _USE = UDE.data; }
- else { _USE = UDE || window.name; }
- _USE = _USE.parseJSON();
- _UME = U.MN.message.get.func[_USE[1]];
- (_UME) && (_UME.message[_USE[0], _USE[2], _USE[3]]);
- } catch (e) { }
- };
- if (U.MN.message._UTF) {
- U.M.AddEvent("message", window, U.MN.message._UFS);
- }
- U.MN.message.get = U.MN.message.prototype = {
- func: {},
- ZS: 1,
- init: function (UDE) {
- U.Ut.AddObj(this, UDE);
- this.id = this.id || Guid.guidNoDash();
- this.func[this.id] = this;
- if (!U.MN.message._UTF) {
- if (this.Sender) {
- var _USE = this.obj;
- (U.Ut.isString(_USE)) && (_USE = $(_USE)[0]);
- this.url = U.M.getUrl(_USE.src).host;
- this.obj = $$("iframe", { style: { display: "none" }, width: "0", height: "0" }, document.body);
- }
- else { $().ready(U.M.apply(this, U.MN.message._UFS)); }
- }
- },
- message: function (UDE) {
- (U.Ut.isFunction(this.me)) && (this.me(UDE));
- if (this.Sender && !U.MN.message._UTF) {
- var _UD = this.obj.contentWindow.document;
- _UD.open();
- _UD.write("");
- _UD.close();
- $(this.obj).remove();
- }
- },
- post: function (UDE, UDID, UCE) {
- var _UKE, _USE = this.obj;
- UDE = U.MS.jsonToStr[UDE, UDID || "", this.id, UCE];
- (U.Ut.isString(_USE)) && (_USE = $(_USE)[0]);
- if (U.MN.message._UTF) {
- try { _USE = _USE.contentWindow || _USE; }
- catch (e) { _USE = this.obj; } _USE.postMessage(UDE, "*");
- }
- else {
- if (this.url) {
- _USE.src = "about:blank";
- U.MD.IframeLoad(_USE, [[U.M.apply(this, [[this.ie, [_USE, UDE]]])]]);
- }
- else { window.name = UDE; window.location = this.lurl; }
- }
- },
- ie: function (USE, UDE) { USE.contentWindow.name = UDE; USE.contentWindow.location.href = this.url; }
- }
- U.MN.message.get.init.prototype = U.MN.message.get;
- U.MN.message.cb = U.MN.message._UFS;
- Namespace.register("U.PL");
- U.PL._er = {};
- U.PL._ev = ["loadstart", "ended", "progress", "suspend", "abort", "error", "stalled", "play", "pause", "loadedmetadata", "loadeddata", "waiting", "playing", "canplay", "readystatechange", "canplaythrough", "seeking", "seeked", "timeupdate", "ended", "ratechange", "durationchange", "volumechange"];
- U.PL.vi = function (UDE, UDPD, UCE) {
- if ($$("video").canPlayType) {
- return new U.PL.vi.init(UDE, UDPD, UCE);
- }
- else { return false; }
- }
- U.PL.vi.init = function (UDE, UDPD, UCE) {
- this.obj = UDE || {};
- this.pa = UDPD;
- this.vi = null;
- this.config(UCE);
- return this;
- }
- U.PL.vi.init.prototype = {
- type: { "ogg": 'video/ogg; codecs="theora, vorbis"', "mp4": 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"', "webm": 'audio/webm; codecs="vorbis"' },
- attr: { at: "audioTracks", ap: "autoPlay", bf: "buffered", cl: "controller", cr: "controls", co: "crossOrigin", cs: "currentSrc", cTime: "currentTime", dm: "defaultMuted", dp: "defaultPlaybackRate", dt: "duration", ed: "ended", er: "error", lt: "initialTime", lp: "loop", mg: "mediaGroup", mt: "muted", ns: "networkState", pe: "paused", pr: "playbackRate", sTime: "startTime", pr: "playbackRate", py: "played", pl: "preload", rd: "readyState", si: "seeking", sk: "seekable", st: "startOffsetTime", tt: "textTracks", vt: "videoTracks", vl: "volume" },
- config: function (UDE) {
- U.Ut.AddObj((this.cf = this.cf || {}), UDE); U.Ut.AddObj(this.cf, { l: this.cf.l || 0, urls: this.cf.urls || [] });
- },
- init: function (UDE, UDPD, UCE) {
- U.Ut.AddObj(this, { obj: UDE || {}, pa: UDPD, vi: null }); this.config(UCE); return this;
- },
- create: function (URL, UDPD) {
- var _UCE = this.cf, _UVE = _UCE.html || { "style": { "cssText": "margin:auto;display:block;height:100%;width:auto;" }, "autoplay": "autoplay", "controls": "controls", "accesskey": true, "poster": "" };
- if ((URL = ((this.cf.urls.push(URL), URL) || this.cf.urls[this.l]))) {
- if (!this.vi) { this.vi = $$("video", _UVE, UDPD || this.pa || document.body); this.event(); } if (!U.Ut.isString(URL) && this.vi.srcObject) { this.vi.srcObject = URL } else { this.vi.src = U.Ut.isString(URL) ? URL : (window.URL || window.webkitURL).createObjectURL(URL); } this.set(this.obj);
- }
- else { U.Alert("链接无效"); }
- return this;
- },
- load: function (URL) {
- URL = URL || this.cf.urls[this.cf.l]; if (this.vi) { this.vi.url = URL; } else { this.create(); }
- },
- event: function () {
- var i, _UDOD = this.vi;
- if (U.PL._ev) { for (i = 0; i < U.PL._ev.length; i++) { U.M.AddEvent(U.PL._ev[i], _UDOD, U.M.apply(this, [[this.cb, [U.PL._ev[i]]]])); } }
- },
- cb: function (UTP) {
- (this.cf[UTP]) && (this.cf[UTP])();
- return true;
- },
- getType: function (UTF) {
- return this.vi[this.attr[UTF] || UTF];
- },
- set: function (UTP, UV) {
- var i, _UAE = this.attr, _USE = UTP; (U.Ut.isString(UTP)) && (_USE = {}, _USE[UTP] = UV);
- for (i in _USE) { this.vi[(_UAE[i] || i)] = _USE[i]; }
- },
- exec: function (UTF) {
- return this[UTF] ? this[UTF]() : this.vi[UTF];
- },
- next: function () {
- var _URL; this.cf.l = this.cf.l - 1 < 0 ? this.cf.urls.length - 1 : this.cf.l - 1; if ((_URL = this.cf.urls[this.cf.l])) { this.load(_URL); }
- },
- lower: function () {
- var _URL; this.cf.l = this.cf.l + 1 >= this.cf.urls.length ? 0 : this.cf.l - 1; if ((_URL = this.cf.urls[this.cf.l])) { this.load(_URL); }
- },
- isPlay: function (UTF, UDOD) {
- return (UDOD || this.vi).canPlayType(this.type[UTF.toLowerCase()]);
- },
- play: function (UTF) {
- this.vi[UTF ? "play" : "pause"]();
- },
- backRate: function (UVE) {
- this.vi.playbackRate = UVE;
- },
- error: function (UE) {
- var _UDE = ["", "网络异常", "解码失败", "URL无效"];
- (!UE.code) && (U.Alert(_UDE[UE.code]));
- },
- fullScreen: function () {
- var _funcname = U.M.GetFullSreeenName("requestFullScreen");
- if (_funcname != null)
- this.vi[_funcname]();
- },
- fullScreen: function () {
- U.M.cancelfullScreen();
- }
- }
|