12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- �
-
-
-
-
-
-
-
-
-
-
-
- U.UF.E.RichEditor = function (SO, W, H, ISC, cb) {
- var _UDRE, _UDS, _UDOS, _UDA, _UDEM, _UDFD, _UDCD, _UDOD = SO[0] || SO, _UDTD = SO[1] || SO, _UOFD = $$("frag"), _UTFD = $$("frag"), _TF = U.UF.CI.isSupportFlash();
-
- _UDRE = $$("div", { "className": "UF_FW_ok UF_FW_centerwindow " }, _UOFD);
- $$("div", { "unselectable": "on", "className": "UD_PiLt UF_FW_face", "title": "表情" }, _UDRE);
- $$("div", { "unselectable": "on", "className": "UD_PiLt UF_FW_Fbold", "title": "粗体" }, _UDRE);
- $$("div", { "unselectable": "on", "className": "UD_PiLt UF_FW_underline", "title": "下划线" }, _UDRE);
- $$("div", { "unselectable": "on", "className": "UD_PiLt UF_FW_italic", "title": "斜体" }, _UDRE);
- _UDS = $$("select", { "className": "UF_FW_FontSize", "title": "字体大小" }, _UDRE);
- _UDOS = $$("select", { "className": "UF_FW_FontType", "title": "字体" }, _UDRE);
- _UDA = $$("div", { "className": "UE_Edit" }, _UDRE);
- _UDEM = $$("div", { "className": "UD_PiLt UE_EditOut UE_EditEnd", "title": "上传图片", "onclick": _TF ? [[U.UF.EV.stopBubble], [parent.U.MD.C.UP.FUW, [US.EMPTYGUID, US.userInfo.UserId, US.EMPTYGUID, { "GS": "UP", "getData": U.UF.C.apply(this, [[U.UF.E.UPAsynCB, [_UDTD, "QL", null]]], "URL": "http://main.1473.cn/USUpfile.ashx?typename=UseStudioEditor", "ID": "UDK_FUPB"}])]] : "" }, _UDA);
- if (!_TF) { $$("input", { "className": "UE_filePrew", "type": "file", "id": "UU_E_Input", "name": "usestudiouploadinput", "onchange": [[parent.U.UF.E.usestudioeditoruploadimg, [this, _UDTD, cb, "QL"]]] }, _UDEM); }
- if (ISC) { $$("div", { "unselectable": "on", "className": "UF_FW_right UD_PiLt UF_FW_messagenote", "id": "messagenote" }, _UDRE); }
- _UDFD = $$("div", { "style": { "height": H + "px" }, "className": "UF_FW_DECC" }, _UTFD);
- _UDCD = $$("div", { "spellcheck": "false", "contentEditable": "true", "className": "UF_FW_DEC", "style": { "float": "none", "cssFloat": "none", "styleFloat": "none"} }, _UDFD);
- _UDOD.appendChild(_UOFD); _UDTD.appendChild(_UTFD);
-
- U.UF.E.editorWindow(_UDOD, _UDCD); U.UF.E.Setoptions(_UDCD, _UDOS, _UDS); return SO;
- }
- U.UF.E.editorWindow = function (UDRE, UDFD) {
- var _UDPD = U.selectEl("div", UDRE)[0], _UDOD = U.selectEl("div", _UDPD); ;
- ($("input", _UDPD)[0] || _UDOD[5]).onmousedown = _UDOD[0].onmousedown = U.UF.C.apply(this, [[U.UF.E.GetSelectionRange, [window, UDFD, { "TF": "QL"}])]];
- _UDOD[0].onclick = function(){U.UF.E.CreateSf("ChattingFaceDiv", null, this, window, UDFD, "QL");};
- _UDOD[1].onmousedown = U.UF.C.apply(this, [[U.UF.E.FontSizeType, [UDFD, { "fontWeight": ["bold", "normal"]}])]];
- _UDOD[2].onmousedown = U.UF.C.apply(this, [[U.UF.E.FontSizeType, [UDFD, { "textDecoration": ["underline", "none"]}])]];
- _UDOD[3].onmousedown = U.UF.C.apply(this, [[U.UF.E.FontSizeType, [UDFD, { "fontStyle": ["italic", "normal"]}])]];
- }
- U.UF.E.SetSO = function (AF) {
- if (AF && AF != event) {
- if (this["on"] == 1) { U.UF.C.apply(this, [AF])(); this["on"] = 0; }
- else { this["on"]++; }
- }
- else { this["on"] = 0; }
- }
- U.UF.E.Setoptions = function (ED, UDOS, UDS) {
- UDS["on"] = UDOS["on"] = UDOS.options.length = UDS.options.length = 0;
- var _FS = [12, 14, 16, 18, 20, 22, 24, 36, 48, 72], _FT = ["宋体", "黑体", "仿宋_GB2312", "楷体_GB2312", "隶书", "微软雅黑", "幼圆", "Arial", "Verdana"];
- for (var i = 0; i < 9; i++) { UDOS.options.length += 1; UDOS.options[i].value = _FT[i]; UDOS.options[i].text = _FT[i]; }
- for (var j = 0; j < 10; j++) { UDS.options.length += 1; UDS.options[j].value = _FS[j] + "px"; UDS.options[j].text = _FS[j]; }
- UDOS.onclick = function(){U.UF.E.SetSO([U.UF.E.SelectO, [ED, "fontFamily", UDOS]]);};
- UDS.onclick = function(){U.UF.E.SetSO([U.UF.E.SelectO, [ED, "fontSize", UDS]]);};
- UDS.onblur = UDOS.onblur = U.UF.E.SetSO
- }
- U.UF.E.SelectO = function (ED, TF, UDE) {
- if (TF == "fontFamily") { U.UF.E.FontSizeType(ED, { "fontFamily": UDE.value }); }
- else { U.UF.E.FontSizeType(ED, { "fontSize": UDE.value }); }
- }
- U.UF.E.usestudioeditoruploadimg = function (UEL, UED, cb, TF) {
- if (parent.US.userInfo.UserId) {
- var _UDID, _TF = U.UF.UP.SFT("UP"), _UDED = U.selectEl("div@contentEditable=true", UED.parentNode)[0], _UPEL = UEL.parentNode;
- if (parent.U.UF.UP.UploadFileType(UEL, _TF) == false) { U.Alert("只允许上传图片文件和压缩文件"); return; }
- UDID = U.UF.E.AddUPWJ({ "type": "jpg" }); U.UF.E.CreateImage(window, UDID.outerHTML, _UDED, TF);
- U.UF.UP.inputUpload([UEL],"http://main.1473.cn/USUpfile.ashx?typename=UseStudioEditor", U.UF.E.uploadcallback, [_UDED, U.selectEl("img@TI=" + UDID.id, _UDED)[0]], true);
- $$("input", { "className": "UE_filePrew", "title": "上传图片", "type": "file", "id": "UU_E_Input", "name": "usestudiouploadinput", "onchange": UEL.onchange, "onmousedown": function(){U.UF.E.GetSelectionRange(window, _UDED, { "TF": TF});} }, _UPEL)
- }
- else { parent.U.Alert("请登录后在上传"); }
- }
- U.UF.E.uploadcallback = function (r) {
- var _UTF, _context = r.context, _UDOD = r.UpObj; r = r.value;
- if (r != "") { _UTF = U.UF.UP.getFileNameAndExtension(_UDOD); U.UF.E.AddUPWJ({ "URL": r[0], "name": _UTF[0], "size": r[1], "type": "." + _UTF[1] }, _context[1]); }
- }
- U.UF.E.init = function (UDOD, SO) {
- var _UE = U.UF.EL.getElementInfo(SO), _UR, _UL = _UE["BCRL"], _UT = _UE["BCRT"] + _UE["PXT"] - 220 + "px";
- if (_UL + 436 >= US.width) { _UR = true; _UL = 0; } else { _UL = _UL - 190; }
- U.selectEl(UDOD).addAttrArray({ "style": { "left": _UL + "px", "right": _UR ? _UL + "px" : "auto", "top": _UT} });
- }
- U.UF.E.CreateSf = function (ID, DFPE, SO, CW, OS, TF) {
- DFPE = DFPE || U.selectEl("#" + ID)[0];
- if (DFPE == null) {
- DFPE = $$("div", { "id": ID, "unselectable": "on", "className": "defaultFacePanel", "onclick": function(){U.UF.EV.stopBubble], [U.UF.E.CreateSf(ID, "retElement");}, "style": { "display": "block"} });
- for (var i = 0; i < 105; i++) { $$("div", { "title": "[face](" + i + ")", "unselectable": "on", "onclick": function(){U.UF.E.CreateImage(CW, "<img contentEditable='false' src='http://www.1473.cn/img/ChatingFaceGif/[face](" + i + ").gif' style='width:20px;height:20px;' /> ", OS, TF);} }, DFPE); }
- document.onclick = function(){U.UF.E.CreateSf(ID, DFPE]], [document.onclick || function(){}, [);}; document.body.appendChild(DFPE);
- }
- else { if (DFPE.style.display == "block" || arguments.length == 2) { DFPE.style.display = "none"; return; } else { U.selectEl(DFPE).addAttrArray({ "style": { "display": "block"} }); } }
- U.UF.EV.stopBubble(); U.UF.F.topWindow(DFPE); U.UF.E.init(DFPE, SO); U.UF.E.CreateImage(CW, "", OS, TF); return DFPE;
- }
- CreateImage: function (EW, PH, SO, TF) {
- U.UF.E.SORange["OE"][TF].Replace(PH);
- },
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- U.UF.CI.GCInfo = function () {
- U.UF.CI.IEedition();
- }
- U.UF.CI.IEedition = function () {
- var _UDE = U.UF.CI.getBrowser(), _UCE = U.UF.CI.getSystem();
- if ((_UDE.browser == "msie" && Number(_UDE.ver) < 7) || _UDE.browser == "firefox") { U.selectEl("#UD_CI_getBrowser")[0].style.display = "block"; }
- else if ("iphone,ipad".indexOf(_UDE.browser) > -1) { U.UF.CI.Ipad(); }
- if (_UCE.indexOf("win") > -1) { U.UF.CI.Win(_UDE, _UCE); }
- }
- U.UF.CI.Win = function (UBE, UCE) {
- if (!browser.lb && UBE.browser == "msie" && UBE.ver != "10.0") {
- _UHF = US.FILESYSTEMURL + "c181e980-d781-4fef-bb45-a3ccabdd911a.msi"; _UIH = "云端";
- U.UF.CI.WinDIs(_UHF, _UIH);
-
-
- }
- }
- U.UF.CI.WinDIs = function (UHF, UIH) {
- var _UDOD = $$("div", { "id": "UD_CI_BAlert", "className": "UD_CI_BAlert" });
- $$("div", { "className": "UD_CI_Warn" }, _UDOD);
- $$("div", { 'className': 'UD_CI_Text', "innerHTML": "您使用的浏览器版本过低建议您下载" }, _UDOD);
- $$("a", { "className": "UD_CI_DL", "href": UHF, "innerHTML": UIH }, _UDOD);
- $$("a", { "className": "UD_CI_Text_Click", "href": "javascript:void(0);", "onclick": U.UF.C.apply(_UDOD, "retElement.style.display = 'none';"), "innerHTML": "我知道了" }, _UDOD);
- U.selectEl("body").append(_UDOD); setTimeout(function(){U.UF.CI.SetUserD(_UDOD);}, 10000);
- }
- U.UF.CI.SetUserD = function (UDOD) {
- U.selectEl(UDOD).addAttrArray({ "style": { "display": "block"} }).animate({ "top": "80px", "left": US.width / 1.7 + "px" }, 400);
- }
- U.UF.CI.XZWin = function (UFSN, UDN) {
- U.UF.UP.inputUpload([$$("input", { "type": "text", "value": UDN, "name": "filename" }), $$("input", { "type": "text", "value": UFSN, "name": "filepath" })],"http://main.1473.cn/USUpfile.ashx?typename=apk", null, null );
- }
- U.UF.CI.Ipad = function () {
- document.ontouchmove = U.UF.EV.stopDefault;
- }
- U.UF.C.nextSibling = function (obj) {
- while (obj.nextSibling.nodeType != 1) {
- obj = obj.nextSibling;
- }
- return obj.nextSibling;
- var i, _UDOD = parent.$("#US_ExcelContent").Parent(2), _UDSD = U.selectEl("span", _UDOD)[1], _UGE = U.MD.O.E.SY, _UAE = ["P", "Z", "Y", "ZT", "ZLJ", "ZU", "ZI", "F"];
- for (i = 0; i < _UAE.length; i++) { _UAE[i] = U.selectEl("#U_E_A" + _UAE[i])[0]; }
- if (_UGE["OL"]) { U.OU.Onload("Excel", _UAE.slice(0, 4), _UAE); _UGE["OL"] = false; U.MD.O.E.SetWH(); }
- U.MD.O.E.CNO(); _UDSD.onclick = function(){U.MD.O.E.CSave([parent.U.UF.F.closeWindow, [_UDOD,"remove"]]);};
- document.body.focus(); document.onmousedown = document.onclick = U.MD.O.E.YCCD;
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- U.UF.IMG.Animate = function (id) { return new U.UF.IMG.AnimateD(id); }
- U.UF.IMG.AnimateD = function (id) {
- this.itime = 0;
- this.mode = 1;
- this.maxHeight = 0;
- this.timer = null;
- this._BV = null;
- this.obj = this.initial(id); ;
- }
- U.UF.IMG.AnimateD.prototype = {
- initial: function (id) {
- this._BV = U.UF.CI.getBrowser().ver;
- return "string" == typeof (id) ? document.getElementById(id) : id;
- },
-
- LScreenSwitch: function (s, d, cb) {
- s.style.height = document.body.clientHeight + "px";
- s.style.left = s.style.width = 0 + "px";
- d.style.width = document.body.clientWidth + "px";
-
- var that = this;
- this.timer = setInterval(function () { that.sstimer(s, d, cb); }, 32);
- },
- sstimer: function (s, d, cb) {
- if (parseInt(s.style.width) < document.body.clientWidth) {
- d.style.left = s.style.width = parseInt(s.style.width) + 100 + "px";
- var w = parseInt(d.style.width) - 100;
- w > 0 ? d.style.width = w + "px" : d.style.width = "0px";
- }
- else {
- s.style.width = document.body.clientWidth + "px";
- d.style.width = "0px";
- d.style.left = "0px";
- clearInterval(this.timer);
- cb();
- }
- },
-
- RScreenSwitch: function () {
- },
- slideDown: function () {
- if (parseInt(this.obj.style.height) > this.maxHeight) { this.mode = 0; return; };
- this.obj.style.height = parseInt(this.obj.style.height) + 2 + 'px';
- this.timer = setTimeout("U.UF.IMG.Animate()", this.itime);
- },
- slideUp: function () {
- if (parseInt(this.obj.style.height) < 2) { this.mode = 1; return; };
- this.obj.style.height = parseInt(this.obj.style.height) - 2 + 'px';
- var repeat = "U.UF.IMG.Animate()";
- this.timer = setTimeout(repeat, this.itime);
- },
- slide: function (objid, itime, mode) {
- clearTimeout(this.timer);
- this.obj = this.initial(objid);
- this.itime = itime;
- if (mode) {
- this.maxHeight = this.maxHeight ? this.maxHeight : parseInt(this.obj.style.height);
- this.obj.style.display = "block";
- this.obj.style.height = "0px";
- this.slideDown();
- }
- else this.slideUp();
- },
- fade: function (objid, itime, io, callback)//淡入淡出,io代表淡入或者淡出
- {
- this.obj = this.initial(objid);
- this.itime = itime;
- var that = this;
- this.maxHeight = parseInt(this.obj.style.height) | parseInt(this.obj.clientHeight);
- var i = io ? 100 : 0;
- var z = io ? 0 : 100;
- var v = (_BV == "7.0" || _BV == "8.0") ? 0.1 : 0.05;
- var b = io ? -100 * v : 100 * v;
- var timer = setInterval(function () {
-
- if (i == z) { clearInterval(timer); if (typeof callback == "function") { callback(); } }
- i += b;
- that.obj.style.filter = "alpha(opacity=" + i + ")";
- that.obj.style.MozOpacity = i * v;
- that.obj.style.opacity = i * v;
- that.obj.style.height = that.maxHeight + "px";
- }, that.itime);
- },
- fadeIn: function (objid, itime, callback) {
- this.fade(objid, itime, true, callback);
- },
- fadeOut: function (objid, itime, callback) {
- this.fade(objid, itime, false, callback);
- }
- }
- U.UF.C.previousSibling = function (obj) {
- while (obj.previousSibling.nodeType != 1) {
- obj = obj.previousSibling;
- }
- return obj.previousSibling;
- }
- AddE: function (AIMG) {
- var _UIOD, _UIUD, _UICD, _UITD, _UIID, _useridA, _UIPA, _UICA, _UIYA, _UISA;
-
- this.UIOD = _UIOD = $$("div", { "onmousewheel": function(){U.UF.EV.stopBubble], [this.Wheel(this);}, "className": "U_Img", "onclick": [this.XSI, ["retElement", this, true]], "onmousedown": U.UF.EV.stopBubble, "style": { "maxWidth": US.width + "px", "maxHeight": US.height + "px", "left": (Math.random() * 50) + "px", "top": (Math.random() * 50) + "px", "zIndex": US.ZINDEX ++} });
- $$("div", { "onmousedown": function(){U.UF.EV.stopBubble], [U.UF.F.DragMouseDown(_UIOD);}, "className": "U_Img_Move", "title": "移动相框" }, _UIOD);
- _UICD = $$("div", { "className": "U_Img_Operate UTransition", "onselectstart": function(){} }, _UIOD);
- _UITD = $$("div", { "className": "U_Img_Info", "onmousedown": function(){U.UF.EV.stopBubble], [this.MoveScroll("retElement", this);}, "style": { "maxHeight": (US.height - 80) + "px"} }, _UIOD);
- _UIUD = $$("div", { "style": { "overflow": "hidden", "margin": "auto", "width": "120px", "height": "120px"} }, _UITD);
- this.UIMG = _UIID = $$("img", { "NowRotate": "0", "src": AIMG["Thm"], "onerror": function(){U.MD.C.imgError(this, 1);} }, _UIUD);
- _useridA = $$("a", { "style": { "marginLeft": "20px" }, "onclick": function(){U.UF.EV.stopBubble], [this.Zoom("In", _UIOD, this);} }, _UICD);
- $$("i", { "className": "U_ImgPic zoomIn" }, _useridA);
- $$("div", { "innerHTML": "放大" }, _useridA);
- $$("a", { "title": "点击100%比例", "onclick": function(){U.UF.EV.stopBubble], [this.Zoom(100, _UIOD, this);}, "innerHTML": "100%" }, _UICD);
- _UIPA = $$("a", { "onclick": function(){U.UF.EV.stopBubble], [this.Zoom("Out", _UIOD, this);} }, _UICD);
- $$("i", { "className": "U_ImgPic zoomOut" }, _UIPA);
- $$("div", { "innerHTML": "缩小" }, _UIPA);
- _UICA = $$("a", { "onclick": function(){U.UF.EV.stopBubble], [this.Rotate(1, _UIOD, this);} }, _UICD);
- $$("i", { "className": "U_ImgPic Lrotate" }, _UICA);
- $$("div", { "innerHTML": "左转" }, _UICA);
- _UIYA = $$("a", { "onclick": function(){U.UF.EV.stopBubble], [this.Rotate(-1, _UIOD, this);} }, _UICD);
- $$("i", { "className": "U_ImgPic Rrotate" }, _UIYA);
- $$("div", { "innerHTML": "右转" }, _UIYA);
- $$("div", { "className": "U_ImgPic U_Img_Close UTransition", "style": { "cssText": "float:right;" }, "onclick": [this.Close, [_UIOD, this, true]] }, _UICD);
- if (this.AIMG.length) {
- $$("div", { "className": "U_Img_Prev U_Img_Change U_Img_transition U_ImgPic", "onclick": function(){U.UF.EV.stopBubble], [this.Change(-1, this);} }, _UIOD);
- $$("div", { "className": "U_Img_Next U_Img_Change U_Img_transition U_ImgPic", "onclick": function(){U.UF.EV.stopBubble], [this.Change(1, this);} }, _UIOD);
- }
- U.selectEl(_UIID).addAttrArray({ "style": { "filter": "alpha(opacity=30)", "MozOpacity": "0.3", "Khtml-opacity": "0.3", "opacity": "0.3"} });
- document.body.appendChild(_UIOD); U.UF.F.windowTopCenter(_UIOD); return [_UIOD, _UIID];
- },
- U.MD.O.E.XZTH = function () {
- var k, t = [0, 0], _UI, _UJ, _UDED = [], i = ITF % U.MD.O.E.SY["CE"]["TF"][1], j = Math.ceil(ITF / U.MD.O.E.SY["CE"]["TF"][1]), _HW = 0, _OE = U.UF.EL.getElementInfo(SO), _I = U.MD.O.E.SY["SEO"][1], _UDAD = U.selectEl("div", U.selectEl("#U_E_TableArea")[0]), _UTD = (U.MD.O.E.SY["UAE"]["H"] || U.selectEl("#U_E_TitleBar")[0]), _ULD = (U.MD.O.E.SY["UAE"]["L"] || U.selectEl("#U_E_LeftLine")[0]), _UDEL = U.UF.EL.getChildrenNoText($("div", _UTD)[0].childNodes), _UDTD = U.UF.EL.getChildrenNoText($("div", _ULD)[0].childNodes); ;
- for (k = i; k < _UDEL.length; k++) { _HW += _UDEL[k].offsetWidth; if (_OE["OW"] == _HW) { _UI = k; break; } }
- _HW = 0;
- for (k = j; k < _UDTD.length; k++) { _HW += _UDTD[j].offsetHeight; if (_OE["OH"] == _HW) { _UJ = k; break; } }
- ITF += (_UJ - j) * U.MD.O.E.SY["CE"]["TF"][1] + (_UI - i);
- if (U.MD.O.E.SY["SEO"][1] % U.MD.O.E.SY["CE"]["TF"][1] < ITF % U.MD.O.E.SY["CE"]["TF"][1]) { t = [U.MD.O.E.SY["SEO"][1], ITF]; } else { t = [(Math.floor(U.MD.O.E.SY["SEO"][1] / U.MD.O.E.SY["CE"]["TF"][1]) * U.MD.O.E.SY["CE"]["TF"][1]) + (ITF % U.MD.O.E.SY["CE"]["TF"][1]), (Math.floor(ITF / U.MD.O.E.SY["CE"]["TF"][1]) * U.MD.O.E.SY["CE"]["TF"][1]) + (U.MD.O.E.SY["SEO"][1] % U.MD.O.E.SY["CE"]["TF"][1])]; }
- for (k = t[0]; k <= t[1]; k++) {
- if (U.MD.O.E.SY["SEO"][1] % U.MD.O.E.SY["CE"]["TF"][1] <= k % U.MD.O.E.SY["CE"]["TF"][1] && ITF % U.MD.O.E.SY["CE"]["TF"][1] >= k % U.MD.O.E.SY["CE"]["TF"][1]) { _UDED.push(_UDAD[k]); }
- else if (U.MD.O.E.SY["SEO"][1] % U.MD.O.E.SY["CE"]["TF"][1] >= k % U.MD.O.E.SY["CE"]["TF"][1] && ITF % U.MD.O.E.SY["CE"]["TF"][1] <= k % U.MD.O.E.SY["CE"]["TF"][1]) { _UDED.push(_UDAD[k]); }
- }
- }
- U.UF.ME.Element = new Array(
- '<dragdiv',
- '<div onselectstart="return false;" ',
- '</dragdiv>',
- '</div>'
- );
- U.UF.ME.ElementReplace = function () {
- var tmp = new String(document.body.innerHTML);
- for (i = 0; i < U.CE.Element.length; i += 2) tmp = tmp.replace(new RegExp(U.CE.Element[i], 'gi'), U.CE.Element[i + 1]);
- document.body.innerHTML = tmp;
- }
- U.MD.O.E.EditTextEdit = function (UDOD, UDTD, UTF) {
-
- }
- U.UF.MC.TC = {};
- U.UF.MC.TCatch = function (f) {
- try { (typeof (f) == "string") ? eval(f) : f; }
- catch (e) { Add(U.UF.MC.TC, { "类型": e.name, "错误信息": e.message, "时间": U.UF.D.formatDateToArray(new Date()) }); }
- }
- U.UF.C.SetCapture = function (obj) {
- return document.all ? obj.setCapture() : window.captureEvents(Event.MOUSEMOVE);
- }
- U.UF.C.releaseCapture = function (obj) {
- document.all ? obj.releaseCapture() : window.releaseEvents(Event.MOUSEUP);
- }
- U.UF.C.LoadEvent = function (func) {
- var oldonload = window.onload;
-
- if (typeof window.onload != 'function') {
- window.onload = func;
- }
- else {
- window.onload = function () {
- oldonload();
- func();
- }
- }
- }
- U.UF.C.getKeyCode = function (e) {
- e = e || window.event;
- keynum = e.keyCode ? e.keyCode : e.which;
- return keynum;
- }
- U.UF.C.GetEventTarget = function (e) {
- e = e || window.event;
- return e.target || e.srcElement;
- }
- U.UF.C.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.UF.C.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.UF.C.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.UF.N.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.UF.C.killErrors = function (sMsg, sUrl, sLine) {
-
-
-
-
-
-
- return true;
- }
- U.UF.C.forbiddenKey = function () {
- if (event.keyCode == 116) { event.keyCode = 0; event.returnValue = false; }
- }
- U.UF.C.ForbiddenDivRightMouseClick = function (obj) {
- obj.oncontextmenu = function () { return false; }
- }
- U.UF.C.norm_img = function (SO) {
- var _ISO = U.selectEl("img", SO);
- for (var i = 0; i < _ISO.length; i++) {
- if (_ISO[i].clientWidth >= 1024) { _ISO[i].width = "900px"; }
- }
- }
- U.UF.C.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.UF.S.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.UF.C.isBlank = function (szStr) {
- for (i = 0; i < szStr.length; i++) {
- if (szStr.substring(i, i + 1) == ' ') {
- return false;
- }
- break;
- }
- return true;
- }
- U.UF.S.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.UF.D.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.UF.D.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.UF.D.getLocalTime = function (nS) {
- var _timeS = new Date(parseInt(nS.substring(6, nS.length - 2))).toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");
- if (!parent.browser.msie) _timeS = _timeS.substring(10, 25);
- return _timeS;
- }
- U.UF.D.currenttime = function () {
- var _currenttime = new Date();
- var _year = U.UF.D.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.UF.D.getDate = function (D) {
- if (D == null) { D = new Date(); }
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- U.UF.D.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.UF.D.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.UF.D.DataTime = function (time) {
- time = eval('new ' + eval(time).source) + "";
- var strtime;
- _strtime = time.split(" ");
- _strtime[1] = U.UF.D.GetMonth(_strtime[1]);
- _strtime[0] = U.UF.D.Getweek(_strtime[0]);
- return _strtime;
- }
- U.UF.D.DateAnalyze = function (TD) {
- TD = TD.split(" ");
- var MT = TD[0].split("/");
- MT = MT[0].split("-")
- MT[3] = TD[TD.length - 1];
- return MT;
- }
- U.UF.D.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.UF.D.IsLeapYear = function (Y) {
- if ((Y % 400 == 0 && Y % 100 == 0) || (Y % 4 == 0 && Y % 100 != 0)) { return true; }
- else { return false; }
- }
- U.UF.D.getYear = function () {
- var year = new Date().getYear();
- year = (year < 1900 ? (1900 + year) : year);
- return year;
- }
- U.UF.D.getNowMonth = function () {
- var month = new Date().getMonth() + 1;
- return month;
- }
- U.UF.D.getNowDate = function () {
- var date = new Date().getDate();
- return date;
- }
- U.UF.D.getDayOfMonth = function (month, year) {
- if (month == 4 || month == 6 || month == 9 || month == 11) {
- return 30;
- }
- if (month == 2) {
- if (U.UF.D.IsLeapYear(year)) {
- return 29;
- }
- else return 28;
- }
- return 31;
- }
- U.UF.S.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.UF.S.PYS = function (UST) {
- var i, _UCT = UST.charCodeAt(0);
- if (_UCT && (_UCT > 0xB0A0 && _UCT < 0xD7FC)) { for (i = _UCT; (!(_UCT = U.UF.S.PY[i]) && i > 0xB0A1); ) { i--; } }
- return _UCT;
- }
- U.UF.S.PYS("你");
- Namespace.register("U.UF.IMGes");
- USPhotoImgJson = null;
- U.UF.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.UF.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.UF.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.UF.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.UF.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.UF.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.UF.IMGes.CreatePhotoCase = function (imgid, url, key) {
- var nwidth = 0;
- var nheight = 0;
-
-
-
-
- var IV_Div = window.parent.$('#ImgViewer_Div')[0];
- if (IV_Div != null) {
- var img = U.selectEl("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 (parent.document.getElementById(\'SlideCase_' + img.id + '\')!=null){ parent.document.getElementById(\'SlideCase_' + img.id + '\').parentNode.removeChild(parent.document.getElementById(\'SlideCase_' + img.id + '\'));}"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ImgRollLeftIcon" href="javascript:void(0)" onclick="U.UF.IMGes.imgRoll(document.getElementById(\'ImgViewer_Img' + imgid + '\'),\'left\')" ></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ImgRollRightIcon" href="javascript:void(0)" onclick="U.UF.IMGes.imgRoll(document.getElementById(\'ImgViewer_Img' + imgid + '\'),\'right\')"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ScaleIcon" href="javascript:void(0)" onclick="U.UF.IMGes.Scale(document.getElementById(\'ImgViewer_Img' + imgid + '\'),' + nwidth + ',' + nheight + ')"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ActuleIcon" href="javascript:void(0)" onclick="U.UF.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>';
- U.selectEl('#ImgViewer_manager')[0].innerHTML = strCode;
- U.UF.IMGes.ActuleScale(img, nwidth, nheight);
- }
- }
- _ready = _ready();
-
- U.UF.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.UF.F.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.UF.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.UF.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 (parent.document.getElementById(\'SlideCase_' + USPhotoImg.id + '\')!=null){ parent.document.getElementById(\'SlideCase_' + USPhotoImg.id + '\').parentNode.removeChild(parent.document.getElementById(\'SlideCase_' + USPhotoImg.id + '\'));}"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ImgRollLeftIcon" href="javascript:void(0)" onclick="U.UF.IMGes.imgRoll(document.getElementById(\'ImgViewer_Img' + Imgid + '\'),\'left\')" ></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ImgRollRightIcon" href="javascript:void(0)" onclick="U.UF.IMGes.imgRoll(document.getElementById(\'ImgViewer_Img' + Imgid + '\'),\'right\')"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ScaleIcon" href="javascript:void(0)" onclick="U.UF.IMGes.Scale(document.getElementById(\'ImgViewer_Img' + Imgid + '\'),' + width + ',' + height + ')"></a>';
- strCode += '<a class="samllRadius ImgViewer ImgViewer_ActuleIcon" href="javascript:void(0)" onclick="U.UF.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.UF.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.UF.IMGes.ImgReady(url, _e, function () { USPhotoImg.src = this.src; }, function () { alert("加载失败"); ImgDiv.parentNode.removeChild(ImgDiv); });
- document.body.appendChild(ImgDiv);
- }
- U.UF.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.UF.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.UF.C.SEKP = function (IF, CB, TF) {
- IF.onkeypress = function () { if (event.keyCode == 10 || event.keyCode == 13) { if (TF) { U.UF.EV.stopDefault(); } if (CB) { CB(); } } }
- }
- U.UF.DL.SMGif = function (_div, _load) {
- if (_load == false) _div.removeChild(U.UF.C.GetCById(_div, "U_SMLD"));
- else $$("img", { "id": "U_SMLD", "className": "U_SMLDGif", "src": "http://www.1473.cn/img/us_smlding.gif" }, _div);
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- U.UF.F.DragMouseDown = function (UDOD, cb, UDE) {
- if (event.button < 2) {
- var _UTE = new U.UF.F.DragMouseDown.init(UDOD, cb, UDE),
- _UKE = {
- "mousemove": U.UF.C.apply(_UTE, _UTE.Drag),
- "mouseup": U.UF.C.apply(_UTE, _UTE.DragUp)
- };
-
- U.UF.C.AddObj(_UTE, _UKE);
- _UTE.create();
- U.selectEl(document).bind(_UKE);
-
- return (U.UF.F.DragMouseDown.ST = _UTE);
- }
- }
- U.UF.F.DragMouseDown.init = function (UDOD, cb, UDE, UCE) {
- if (UCE && UCE.start) { UCE.start() };
- this.set(UCE);
-
- this.set({
- max: (UDE && UDE.MaxLeft) ? UDE : null,
- SO: UDOD,
- AF: cb,
- ESO: event.srcElement
- });
- return this;
- }
- U.UF.F.DragMouseDown.init.prototype = {
-
- set: function (UDE) {
- if (UDE) { U.UF.C.AddObj(this, UDE) };
- },
-
- create: function () {
- var _UDOD = this.SO,
- _UHE = U.UF.EL.getElementInfo(_UDOD);
-
- U.UF.C.AddObj(this, {
- IsD: false,
- XY: U.UF.EL.getMousePosition(),
- E: _UHE,
- MaxTop: _UHE["PXT"] + US.height - 10,
- MaxLeft: _UHE["PXL"] + US.width,
- MinLeft: -_UHE["OW"] + 10,
- MinTop: 0
- });
-
- if (this.max) { this.IsMinAndMax() };
- },
-
- IsMinAndMax: function (UDE) {
- U.UF.C.AddObj(this,
- { "MaxLeft": this.E["PXL"] + UDE["MaxLeft"] || this.MaxLeft,
- "MinLeft": UDE["MinLeft"] || this.MinLeft,
- "MinTop": UDE["MinTop"] || this.MinTop,
- "MaxTop": this.E["PXT"] + UDE["MaxTop"] || this.MaxTop
- });
- },
-
- Drag: function () {
- var i, _UHE, _UDTD, _UDMD,
- _UDOD = this.SO,
- _UDE = [["X", "Left", "L"], ["Y", "Top", "T"]],
- _UME = this.E,
- _UCE = this.XY,
- _UE = U.UF.EL.getMousePosition();
- if (this.move) { this.move(this) };
-
- for (i = 0; i < _UDE.length; i++) {
- _UDE[i] = Math.min(Math.max(_UE[(_UHE = _UDE[i])[0]] - _UCE[_UHE[0]] + _UME["O" + _UHE[2]], this["Min" + _UHE[1]]), this["Max" + _UHE[1]]);
- }
-
- if (!this.IsD) {
- this.IsD = true;
- U.UF.C.AddObj(this, {
- VDB: U.UF.F.foundVirtualBox(_UDOD),
- UMD: U.UF.F.maskFrame()
- });
-
- U.selectEl(this.UMD).bind({
- mousemove: this.mousemove,
- mouseup: this.mouseup
- });
-
- U.UF.F.topWindow(this.UMD);
- U.UF.F.topWindow(this.VDB);
-
- this.VDB.setCapture();
- }
-
- U.selectEl(this.VDB).addAttrArray({ "style":
- {
- "cssText": "left:" + _UDE[0] + "px;top:" + _UDE[1] + "px;"
- }
- });
- },
-
- DragUp: function () {
-
- $[document, this.UMD].unbind(
- {
- "mousemove": this.mousemove,
- "mouseup": this.mouseup
- });
- this.IsD = false;
-
- if (this.VDB) {
- var _UDMD = this.UMD,
- _UDTD = this.VDB,
- _UDE = U.UF.EL.getElementInfo(_UDTD);
- _UDTD.releaseCapture();
- U.UF.F.DragMouseDown.chche = U.UF.F.DragMouseDown.ST = null;
- $[_UDMD, this.VDB].remove();
- U.selectEl(this.SO).addAttrArray({ "style":
- {
- "cssText": "top:" + (_UDE["OT"] + 2) + "px;left:" + (_UDE["OL"] + 2) + "px;"
- }
- });
- U.UF.F.withf(this.cb);
- }
- }
- }
- U.UF.F.iconmove = function (UDOD, UDE) {
- if (event.button != 2) {
- var _UTE = new U.UF.F.iconmove.init(UDOD, UDE);
- return _UTE;
- }
- }
- U.UF.F.iconmove.init = function (UDOD, UDE) {
- if (UDOD) {
- var i, _UE = U.UF.EL.getElementInfo($(UDOD)[0]),
- _UKE = U.UF.EL.getMousePosition(),
- _UCE = this.UCE = {
- "mousemove": U.UF.C.apply(this, function () { this.move(); }),
- "mouseup": U.UF.C.apply(this, function () { this.up(); })
- };
- if (UDE && UDE["ST"]) { UDE["ST"].call(this, UDOD) };
-
- U.UF.C.AddObj(this, {
- IsD: false,
- UMD: U.UF.F.maskFrame(),
- E: _UKE,
- SO: UDOD,
- UE: _UE,
- UCF: UDE,
- MT: _UE["PXT"] + US.height - 10,
- ML: _UE["PXL"] + US.width, MIL: -_UE["OW"] + 10,
- MIT: 0
- });
-
- UDOD.setCapture();
- U.selectEl(document).bind(_UCE);
- U.UF.F.topWindow(this.UMD, true);
- U.selectEl(UDOD).css("z-index", 9999);
- return this;
- }
- }
- U.UF.F.iconmove.init.prototype = {
-
- move: function () {
- var i, _UTL,
- _UDOD = this.SO;
- _UE = U.UF.EL.getMousePosition(),
- _UKE = this.E,
- _UME = this.UE,
- _UAE = [["x", "L"], ["y", "T"]];
- U.UF.EV.stopBubble();
- if (!this.UMD) {
- this.UMD = U.UF.F.maskFrame();
- U.selectEl(this.UMD).bind(this.UCE);
- }
-
- for (i = 0; i < _UAE.length; i++) {
- _UTL = _UE[_UAE[i][0]] - _UKE[_UAE[i][0]];
- if (Math.abs(_UTL) > 2) { this.IsD = true };
- _UAE[i] = Math.min(Math.max(_UTL + _UME["O" + _UAE[i][1]], this["MI" + _UAE[i][1]]), this["M" + _UAE[i][1]]);
- }
-
- U.selectEl(_UDOD).addAttrArray({ "style": { "cssText": "left:" + _UAE[0] + "px;top:" + _UAE[1] + "px"} });
- if (this.UCF && this.UCF["Move"]) { this.UCF["Move"].apply(this, [_UDOD, _UAE, _UKE, _UE]) };
- this.ism = true;
- },
-
- up: function () {
- var _UDOD = this.SO,
- _UFE = this.UCF;
- U.UF.EV.stopBubble();
- _UDOD.setCapture();
-
- this.ism = null;
- U.selectEl(this.UMD).remove();
- U.selectEl(document).unbind(this.UCE);
- U.selectEl(_UDOD).css("z-index", "");
-
- if (_UFE && _UFE["UP"]) { _UFE["UP"].apply(this, [_UDOD]) };
- setTimeout(function () {
- _UDOD.releaseCapture();
- }, 0); ;
- }
- }
- U.MD.D.D.FYGBL = function (UDE, UP, UHP) {
- UHP = UHP || [10, 300];
- var _UDV, _UNP = UHP[1] / UHP[0],
- _UTP = Math.ceil(UP / _UNP),
- _UCP = UP % _UNP;
- UP = !_UCP ? _UNP : _UCP;
- if (UDE && (UDE = UDE[_UTP])) {
- _UDV = UDE.slice((UP - 1) * UHP[0], (UP * UHP[0]));
- }
- return [_UDV, _UTP];
- }
|