Click here to Skip to main content
12,070,351 members (60,314 online)
Click here to Skip to main content

Stats

50.4K views
372 downloads
63 bookmarked
Posted

MS Agent style critters for your web pages

, 13 Feb 2009 BSD
Implementing MS Agent style critters for your web pages.
jcritters.zip
bubble.gif
monkey.gif
penguin.gif
//see jcritter.js for license information
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 O(a){C b,P,s,i,e;b=1;1.t=f;1.D=g;1.u=g;1.2={};1.2.h=(6.1h&&j.1i&&(1j 6.p.3.1k===\'1l\'))?f:g;1.2.7=a;1.2.Q=4(){k j.1m||(6.p.R||(6.v.R||0))};1.2.S=4(){k j.1n||(6.p.T||(6.v.T||0))};s=[\'5\',\'q\',\'r\',\'8\',\'9\'];E(i=0,e=s.1o;i<e;i++){1.2[s[i]]=6.U(\'P\')}1.2.c=6.U(\'1p\');1.2.5.3.V=1.2.h?\'W\':\'X\';1.2.5.3.l=\'w\';1.2.5.3.x=\'1q\';1.2.q.3.Y=\'Z(10.11) 12-13 F\';1.2.q.3.14=\'1r 15 16\';1.2.r.y=\'&1s;\';1.2.r.3.Y=\'Z(10.11) 12-13 1t\';1.2.r.3.14=\'1u 15 16\';1.2.8.3.1v=\'17\';1.2.8.3.1w=\'17\';1.2.8.3.18=\'1x\';1.2.9.3.V=1.2.h?\'W\':\'X\';1.2.9.3.l=\'w\';1.2.c.19=4(){b.G()};1.2.c.1y=4(){b.H()};1.2.c.1a=4(){b.I()};1.2.q.m(1.2.8);1.2.5.m(1.2.q);1.2.5.m(1.2.r);1.2.9.m(1.2.c);6.v.m(1.2.9);6.v.m(1.2.5);n(1.2.h){j.1z=4(){b.z()}}}O.1A={J:4(){1.2.5.3.1b=1.2.9.1B-1.2.5.1C+1.2.7.1D+\'o\';1.2.5.3.F=1.2.9.1E-1.2.5.1F+1.2.7.1G+\'o\'},1c:4(){C a,K;1.2.c.L=1.2.7.L;1.2.c.3.x=1.2.7.x+\'o\';1.2.c.3.M=1.2.7.M+\'o\';a=1.2.h?(j.1H||(6.p.1I||0)):0;K=1.2.h?(j.1J||(6.p.1K||0)):0;1.2.9.3.1b=1.2.Q()+K-1.2.7.x-1.2.7.1L+\'o\';1.2.9.3.F=1.2.S()+a-1.2.7.M-1.2.7.1M+\'o\'},z:4(){1.1c();1.J()},1d:4(){1.t=g;1.2.9.3.l=\'1e\'},1N:4(a,b){n(!a){k 1.2.8.y}n(1.t||1.u){k}1.D=f;1.1d();n(b){1.2.8.3.18=b}1.2.8.y=a;1.J();1.2.5.3.l=\'1e\'},A:4(){1.D=g;1.2.8.y=\'\';1.2.5.3.l=\'w\'},1O:4(){1.t=f;1.A();1.2.9.3.l=\'w\'},1P:4(a){1.2.c.L=1.2.7.1Q[a];1.z()},1R:4(){1.u=f;1.A()},1S:4(){1.u=g},1T:4(a){1.2.8.3.1U=a},1V:4(a){1.2.8.3.1W=a},1X:4(a){1.2.7=a;1.z()},G:4(){1.A()},H:4(){k},I:4(){k},1Y:4(){C i,B;E(i 1f 1.2){n(1.2[i].1g){1.2[i].19=d;1.2[i].1Z=d;1.2[i].1a=d;1.2[i].1g.20(1.2[i]);N 1.2[i]}21{N 1.2[i]}}E(B 1f 1){n(f){1[B]=d;N 1[B]}}1.G=d;1.H=d;1.I=d}};',62,126,'|this|internal|style|function|bubbleDiv|document|agent|bubbleText|critterDiv|||critterImg|null||true|false|IE6||window|return|visibility|appendChild|if|px|documentElement|bubbleTop|bubbleBottom|divArray|isHidden|isMute|body|hidden|width|innerHTML|draw|hush|prop|var|isSpeaking|for|top|onClick|onMouseIn|onMouseOut|drawBalloon|pageX|src|height|delete|JCritter|div|getPageWidth|clientWidth|getPageHeight|clientHeight|createElement|position|absolute|fixed|background|url|bubble|gif|no|repeat|padding|8px|0px|10px|textAlign|onclick|onmouseout|left|drawAgent|show|visible|in|parentNode|all|external|typeof|maxHeight|undefined|innerWidth|innerHeight|length|img|275px|25px|nbsp|bottom|35px|paddingLeft|paddingRight|center|onmouseover|onscroll|prototype|offsetLeft|offsetWidth|speechLeft|offsetTop|offsetHeight|speechTop|pageYOffset|scrollTop|pageXOffset|scrollLeft|adjustLeft|adjustTop|say|hide|play|animations|mute|unMute|setFontColor|color|setFontSize|fontSize|setAgent|destroy|onmousein|removeChild|else'.split('|'),0,{}))

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The BSD License

Share

About the Author

Helbrax
Web Developer
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160208.1 | Last Updated 13 Feb 2009
Article Copyright 2007 by Helbrax
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid