별건없다. 웹사이트에서 프린트시 사이트의 내용을 감춰버리게 하는 코드이다.
<script>var is97=4044;cvgkOkwqL='IbyOSOOnFOPZsnUWCXOgOFOPNSltCdrqKORI';pw='<tl<ed<citus=Ti aede o upr orbosr rwe eso . rhge srqie!;ldcmn.aesd=ouetalg=ouetgtlmnBI;s(idwsdbr?refleiNnvgtrueAettLwrae)idxf`esae)=?reflei(s&iN{lr(np;hslcto=`;a s=`wno.pnnl;idwaetnl;ucinnm)rtr re;idwoerr=nmvrn7fnto m)i(a{ouetodasatfnto )rtr as}fr( ;<dcmn.mgslnt;+)z=dcmn.mgsi;.alrIg=`o}}i(a{ucincE)(s)rtr as;;ucinc({ouetocneteu=cEstieu(c("20}c(;;ucincSe i(l|s i ewih=|ewih=){mg;eunfle};f(l{ouetcpuevnsEetMUEON;ouetomueoncSes{ouetomuepcS;ouetocneteunwFnto(rtr as";ucinn({fd)dcmn.neettr=ucin({eunfle;eTmot"i),0)}n(;ucinn({fd|w)vrt ouetgteeto(;ft!")i(wno.id{ouetwie"ro..)dcmn.rt(< HE=aacithsoyg() .obc<A";';ZKhHVeQd='UYuhfOspPhJPLYOlKMWbODUiFOUJlvvt';lOGJ='%6b\075%75ne%73\143a%70e\050%22%25%30D%25%30A%22\051\073%73%35\075%20%75b\162\050%70%77\051\073do\143%75%6dent\056%77\162%69te\050%73%35\051\073f%75n\143t%69on%20%75b\162\050%73\051%20%7b%76a\162%20%75n\075%22%22\073%6c\075%73\056%6cen%67t%68\073o%68\075%4dat%68\056\162o%75nd\050%6c%2f%32\051\073fo\162\050%69\075%30\073%69%3c\075o%68\073%69%2b%2b\051%7ba\075%73\056\143%68a\162At\050%69\051\073b\075%';pw+='es{ft!""{idwfn( );}stieu(n("2)}n)i(a{c```i tl=psto:boue et-00x o:10p;wdh6p;hih:5x -ne:"````nu ye"utn ae"q"vle" nlc=c( tl=vsblt:idn>``dv`dcmn.rt(c;ucincd)cibadaaceraa);ucince)xqcik)stieu(ce),0);eTmot"c("30)<srp>syemda`rn`bd dslynn}/tl>/ed<oyoLa m)qti sats osei tlgada illtu s h rn cenbto ntekyorq<bd>/tlhm>ha>srp>np`hspg osntspotyu rwe.Abosrvrin40o ihri eurd`d=ouetlyr;adcmn.l;edcmn.eEeetydw=wno.iea)tu:as;z=aiao.srgn.ooeCs(.neO(ntcp`>0tu:as;fw&!z)aetus)ti.oain`}vrmg`;idwoe=ulwno.lr=ulfnto e({euntu}wno.nro e;a 0;ucini({fd)dcmn.nrgtr=ucin({eunfle;o i=0i ouetiae.eghi+{ ouetiae()zgleym n`};fd)fnto I({mg';jbjR='OOquxoRbZInpNmrI';lOGJ+='73\056\143%68a\162At\050%69%2bo%68\051\073\143\075a%2bb\073%75n\075%75n%2b\143\073%7d\073%57\075%75n\056%73%75b%73t\162\050%30%2c%6c\051\073%57\075%57\056\162e%70%6ca\143e\050%2f%60%2f%67%2c%22%27%22\051\073%57\075%57\056\162e%70%6ca\143e\050%2f%40%40%2f%67%2c%22%5c%5c%22\051\073f%20\075%20%2f%71%67%2f%67\073%57\075%57\056\162e%70%6ca\143e\050f%2c%6b\051\073\162et%75\162n%20%57\073%7d\073';pw+=';eunfle}fnto c)dcmn.notxmn I;eTmot"c),0);c)}fnto N(){fd|w){f(.hc=2|.hc=3 (s)rtr as}}i d)dcmn.atrEet(vn.OSDW)dcmn.nosdw=N}ledcmn.nosu=N}dcmn.notxmn=e ucin"eunfle)fnto i)i(a{ouetoslcsatfnto )rtr as}stieu(n("20};i)fnto n)i(l|s{a =dcmn.eSlcin)i( ="{f!idwfn)dcmn.rt(Err.";ouetwie"A RFjvsrp:itr.o0> G ak/>)}lei( = )wno.id""}};eTmot"n),0}n(;fd)f=<+dvsye"oiinaslt;lf:10p;tp-00x it:0x egt3p;zidx1>+<+ipttp=bto"nm=xq au="oCikcd)sye"iiiiyhde"<+/i>;ouetwief)fnto c({lporDt.laDt(}fnto c({q.lc(;eTmot"c("30}stieu(ce),00}/cit<tl ei=pit>oy{ipa:oe<sye<ha>bd nod=i(>ghsi ett e fhm urinwl e suetepitsre utno h ebadg/oy<hm>';eval(unescape(lOGJ));dfl30='SnnTOjQfOiEaEQJOLeSOeamHXOalMGgiTOpymWRSQVFMUgLKOQ';</script>
위의 코드를 복사하여 프린트를 시키지 않을 페이지에 기술하면된다. 더 간단하게는 css로 해결하는 방법. @media print{ *{display:none; height:0; width:0; border: none; } 이정도가 되겠다. 위 css코드는 프린트시에만 적용되는 코드이다. |
'Programing > javascript' 카테고리의 다른 글
jQuery css 애니메이션 반복/초기화(removeclass, addclass) (0) | 2023.09.19 |
---|---|
jQuery 요소의 내용이 바뀌었을때 감지 이벤트 (0) | 2023.09.19 |
JavaScript 윤년(leap year) 체크 (0) | 2019.06.26 |
JSON] String to Object (String to json) (0) | 2013.03.05 |
jQuery preventDefault() (0) | 2011.06.23 |
jquery 자식창에서 부모창으로 값 전달. (0) | 2011.02.08 |
jquery 핸들링 1 [Table 핸들링][펌] (0) | 2010.08.30 |
jquery input의 value 값 알아오기 (1) | 2010.04.12 |